/* =========================================================
   İtimat Varlık - Classic & Modern Soothing Sage-Gold Theme
   ========================================================= */

/* Soothing Color Palette & Variables */
:root {
    --color-bg: #050f0e; /* Deep forest green/teal, extremely calming */
    --color-bg-alt: #081715;
    --color-surface: rgba(12, 33, 30, 0.6); /* Soft green-tinted glass */
    --color-surface-solid: #0c211e;
    --color-surface-hover: rgba(18, 51, 46, 0.8);
    --color-primary: #155e4e; /* Deep rich Sage/Forest green */
    --color-primary-light: #4aa080; /* Soft soothing Mint/Sage */
    --color-accent: #dcd0c0; /* Warm Sand / Champagne Gold */
    --color-accent-light: #eae0d5;
    --color-text: #f0f5f3; /* Gentle off-white with hint of green */
    --color-text-muted: #94aba4; /* Muted sage-grey text */
    --color-border: rgba(74, 160, 128, 0.18); /* Sage-tinted subtle border */
    --color-border-focus: rgba(220, 208, 192, 0.5);
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-info: #38bdf8;
    --color-warning: #f59e0b;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-blur: blur(14px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 40%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3d32 100%);
    color: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(21, 94, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 94, 78, 0.45);
    border-color: var(--color-primary-light);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 208, 192, 0.2);
}

.btn-accent:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 208, 192, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--color-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 15, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(5, 15, 14, 0.92);
    padding: 10px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-accent {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 3px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-login {
    border: 1px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-nav-login:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.mobile-menu-toggle {
    display: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Nav Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(5, 15, 14, 0.97);
    backdrop-filter: var(--glass-blur);
    z-index: 99;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.open {
    height: calc(100vh - 80px);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    gap: 24px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-nav-overlay.open .mobile-nav-content {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.mobile-nav-link:hover {
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 110px 0;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -15%;
    right: -10%;
    width: 65%;
    height: 80%;
    background: radial-gradient(circle, rgba(74, 160, 128, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 54px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 160, 128, 0.07);
    border: 1px solid rgba(74, 160, 128, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--color-primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.12rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    line-height: 1.3;
}

/* Performance Card visual (Classic-Modern Blend) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.card-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    border-radius: 26px;
    filter: blur(24px);
    opacity: 0.15;
    z-index: 1;
}

.premium-card {
    position: relative;
    background: #091a18;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 2;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 160, 128, 0.3), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-title-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.trend-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.trend-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.chart-container {
    height: 180px;
    position: relative;
    margin-bottom: 24px;
}

.performance-chart {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.chart-dot {
    opacity: 0;
    animation: fadeInDot 0.5s 2s ease forwards;
}

@keyframes fadeInDot {
    to { opacity: 1; }
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 18px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.detail-row span:first-child {
    color: var(--color-text-muted);
}

.risk-indicator {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.risk-indicator.moderate {
    background: rgba(197, 168, 128, 0.1);
    color: var(--color-accent);
}

/* Section Common Layouts */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Services / Features Section */
.services-section {
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #071513;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 160, 128, 0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(74, 160, 128, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: var(--color-primary-light);
    color: var(--color-bg);
}

.service-icon {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
}

.service-link:hover {
    color: var(--color-accent-light);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* Custodian/Custodian notice banner styling (SPK regulated Broker warning) */
.partner-notice-card {
    margin-top: 54px;
    padding: 32px;
}

.partner-notice-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.partner-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(74, 160, 128, 0.08);
    border: 1px solid rgba(74, 160, 128, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.partner-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.partner-text {
    flex-grow: 1;
}

.partner-text h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.partner-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.partner-action {
    flex-shrink: 0;
}

/* Responsive Partner Banner */
@media (max-width: 900px) {
    .partner-notice-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .partner-action { width: 100%; }
    .partner-action .btn { width: 100%; }
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-infocard-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.glass-infocard {
    position: absolute;
    width: 180px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    z-index: 3;
}

.glass-infocard.text-center {
    top: 10%;
    left: 0;
}

.glass-infocard.secondary {
    bottom: 10%;
    right: 0;
    background: rgba(74, 160, 128, 0.04);
    border-color: rgba(74, 160, 128, 0.2);
}

.info-metric {
    display: block;
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.info-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.decorative-blob {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(74, 160, 128, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: floatBlob 8s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.1); }
}

.about-content .section-title {
    margin-bottom: 24px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.why-list li {
    display: flex;
    gap: 16px;
}

.why-icon {
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.why-icon svg {
    width: 24px;
    height: 24px;
}

.why-list h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.why-list p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Portfolio Simulator Section */
.simulator-section {
    background: var(--color-bg-alt);
}

.simulator-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    padding: 48px;
}

.simulator-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.range-display {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    align-self: flex-start;
}

/* Custom Range Input */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(74, 160, 128, 0.15);
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary-light);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(74, 160, 128, 0.4);
    transition: transform 0.1s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary-light);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(74, 160, 128, 0.4);
    transition: transform 0.1s ease;
}

.custom-range::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.profile-selectors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    padding: 14px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(74, 160, 128, 0.3);
}

.profile-btn.active {
    background: rgba(74, 160, 128, 0.08);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 12px rgba(74, 160, 128, 0.15);
}

.profile-btn span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.profile-btn.active span {
    color: var(--color-primary-light);
}

.profile-btn small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.projection-box {
    background: rgba(74, 160, 128, 0.02);
    border: 1px solid rgba(74, 160, 128, 0.15);
    border-radius: 12px;
    padding: 22px;
    margin-top: 8px;
}

.projection-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.projection-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    margin: 4px 0;
}

.projection-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-success);
}

/* Simulator Output Styles */
.simulator-outputs {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
    padding-left: 48px;
}

.output-title {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.visual-distribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}

.distribution-chart-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.donut-chart {
    transform: rotate(-90deg);
}

.chart-slice {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.center-title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.center-val {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.distribution-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
}

.legend-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-name {
    color: var(--color-text-muted);
}

.legend-val {
    font-weight: 600;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(74, 160, 128, 0.08);
    border: 1px solid rgba(74, 160, 128, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
}

.info-card h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.info-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-border-focus);
}

.form-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    color: var(--color-success);
    margin-bottom: 20px;
}

.success-icon svg {
    width: 64px;
    height: 64px;
}

.form-success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success-message p {
    color: var(--color-text-muted);
    max-width: 400px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer Styles */
.main-footer {
    background: #030a09;
    border-top: 1px solid var(--color-border);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.social-links a:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-newsletter p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.legal-warning {
    max-width: 800px;
    line-height: 1.45;
    font-size: 0.75rem;
}

/* Modal Core Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 10, 9, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header-section h2 {
    font-size: 1.5rem;
    margin-top: 12px;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.modal-logo {
    display: inline-block;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
}

.modal-logo .logo-accent {
    font-size: 1.35rem;
}

/* Helper Note inside Modal */
.helper-note-box {
    display: flex;
    gap: 12px;
    background: rgba(74, 160, 128, 0.05);
    border: 1px solid rgba(74, 160, 128, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.helper-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-primary-light);
}

/* Modal Tab Selectors */
.modal-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
    animation: fadeTab 0.3s ease forwards;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 16px 12px 46px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.input-wrapper input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-border-focus);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
}

.input-wrapper input:focus + .input-icon {
    color: var(--color-accent);
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.forgot-password-link {
    color: var(--color-accent);
}

.forgot-password-link:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 24px;
    cursor: pointer;
    user-select: none;
    color: var(--color-text-muted);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 15px;
    width: 15px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: rgba(255,255,255,0.3);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid var(--color-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Login Status States */
.login-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-surface-solid);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 30px;
    animation: fadeInModalOverlay 0.25s ease forwards;
}

@keyframes fadeInModalOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 160, 128, 0.1);
    border-top: 3px solid var(--color-primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Checkmark Animation (Success State) */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--color-success);
}

.success-checkmark .check-icon::before, .success-checkmark .check-icon::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 120px;
    background: var(--color-surface-solid);
    transform: rotate(45deg);
}

.success-checkmark .check-icon::before {
    border-radius: 100px 0 0 100px;
    top: -7px;
    left: -30px;
    transform: rotate(-45deg);
    transform-origin: 60px 60px;
}

.success-checkmark .check-icon::after {
    border-radius: 0 100px 100px 0;
    top: -30px;
    left: 30px;
    transform: rotate(-45deg);
    transform-origin: 0px 60px;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: var(--color-success);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 46px;
    left: 19px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
    top: -4px;
    left: -4px;
    position: absolute;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(16, 185, 129, 0.2);
    box-sizing: content-box;
}

.success-checkmark .check-icon .icon-fix {
    top: 8px;
    left: 28px;
    width: 5px;
    height: 70px;
    position: absolute;
    z-index: 1;
    background: var(--color-surface-solid);
    transform: rotate(-45deg);
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 19px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

/* Footer Collapse base styles */
.collapse-icon {
    display: none;
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
    color: var(--color-accent);
}

/* =========================================================
   Standalone Authentication Pages Styles (Desktop & Mobile)
   ========================================================= */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px 20px 24px; /* Tight bottom padding */
    background: radial-gradient(circle at center, #0a1f1b 0%, #040d0c 100%);
    position: relative;
    overflow-x: hidden;
}

.auth-glow-1 {
    position: fixed;
    top: -15%;
    left: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(74, 160, 128, 0.22) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
}

.auth-glow-2 {
    position: fixed;
    bottom: -15%;
    right: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(220, 208, 192, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    padding: 40px 40px 24px 40px; /* Reduced bottom padding */
    border-radius: 24px;
    background: rgba(10, 25, 23, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: auto; /* Centers card vertically and horizontally, preventing horizontal shifts */
}

.auth-card-wide {
    max-width: 680px; /* Enhanced wide card for side-by-side desktop form elements */
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 1.85rem;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 700;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.auth-logo {
    display: inline-block;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
    margin-bottom: 12px;
}

.auth-logo .logo-accent {
    font-size: 1.7rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-link {
    color: var(--color-accent);
    font-weight: 600;
    margin-left: 4px;
}

.auth-link:hover {
    color: var(--color-accent-light);
    text-decoration: underline;
}

/* Auth Cards Input Labels & Focus Overrides */
.auth-card .form-group label {
    font-weight: 600;
    color: var(--color-accent); /* Golden labels for maximum visibility */
    font-size: 0.92rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.auth-card input {
    font-weight: 600; /* Prominent typed text */
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    padding: 14px 16px;
    transition: var(--transition-smooth);
}

.auth-card input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(220, 208, 192, 0.25);
    background: rgba(0, 0, 0, 0.55) !important;
}

.auth-card input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.phone-prefix {
    width: 80px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.98rem;
    text-align: center;
    font-weight: 600;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.phone-input-group input {
    flex-grow: 1;
}

/* Custom Dropdown / Select Styles */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 600; /* Bold visible text for names */
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: var(--color-primary-light);
}

.custom-select-container.open .custom-select-trigger {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-border-focus);
}

.custom-select-trigger i {
    width: 18px;
    height: 18px;
    color: var(--color-accent); /* Golden arrow */
    transition: var(--transition-smooth);
}

.custom-select-container.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #061110;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    z-index: 100;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.custom-select-container.open .custom-options-list {
    max-height: 280px;
    opacity: 1;
    pointer-events: auto;
    padding: 6px;
    overflow-y: auto;
}

/* Upward Opening Custom Dropdown Override */
.custom-select-container.open-up .custom-options-list {
    top: auto;
    bottom: calc(100% + 6px);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.7);
}

.custom-option-item {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 0.98rem;
    font-weight: 600; /* Bold visible expert / institution name text */
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-option-item:hover:not(.disabled) {
    background: rgba(74, 160, 128, 0.25);
    color: #ffffff;
}

.custom-option-item.selected {
    background: rgba(220, 208, 192, 0.15);
    color: var(--color-accent);
    font-weight: 700;
    border-left: 3px solid var(--color-accent);
    padding-left: 13px;
}

.custom-option-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}

.custom-option-item .institution-badge {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.custom-option-item .institution-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.custom-option-item .institution-badge.passive {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
}

.error-message-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.error-message-box.hidden {
    display: none !important;
}

.error-message-box i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =========================================================
   Responsive Styles
   ========================================================= */
@media (max-width: 1024px) {
    section { padding: 70px 0; }
    .hero-section { padding: 140px 0 80px 0; }
    .hero-title { font-size: 2.8rem; }
    .hero-grid { gap: 32px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .section-header { margin-bottom: 40px; }
    .simulator-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .simulator-outputs { border-left: none; padding-left: 0; border-top: 1px solid var(--color-border); padding-top: 32px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 50px 0; }
    .hero-section { padding: 110px 0 50px 0; }
    .hero-title { font-size: 2.3rem; }
    .navbar { height: 70px; }
    .mobile-menu-toggle { display: block; }
    .nav-links { display: none; }
    .nav-actions .btn-nav-login { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; margin-bottom: 30px; }
    .hero-actions { width: 100%; justify-content: center; margin-bottom: 36px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item { align-items: center; text-align: center; }
    .stat-val-wrapper { justify-content: center; }
    .partner-notice-card { margin-top: 32px; padding: 24px 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-wrapper { padding: 20px; }
    
    /* Footer Spacing & Accordion Collapse */
    .main-footer { padding: 50px 0 30px 0; }
    .footer-grid { gap: 24px; margin-bottom: 30px; }
    
    .footer-collapse-trigger {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
        margin-bottom: 0 !important;
    }
    
    .collapse-icon {
        display: block;
    }
    
    .footer-collapse-trigger.active .collapse-icon {
        transform: rotate(180deg);
    }
    
    .footer-collapse-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }
    
    /* Responsive Auth pages */
    .auth-page-wrapper {
        padding: 30px 16px 12px 16px; /* Tight bottom padding on mobile */
    }
    .auth-card {
        padding: 30px 20px 20px 20px; /* Tight card bottom padding */
        margin: auto;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.95rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .profile-selectors { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .modal-card { padding: 20px 16px; }
    .simulator-card { padding: 20px 16px; }
    
    .auth-header h2 { font-size: 1.5rem; }
}
