/* =========================================
1. VARIABLES & GLOBAL RESET
========================================= */
:root {
--primary-color: #00f2ff;
--secondary-color: #7000ff;
--bg-dark: #040b14;
--bg-card: #0f1724;
--text-bright: #f0f6fc;
--text-dim: #c9d1d9;
--text-dim-darker: #b0b8c4;
}

body {
background-color: var(--bg-dark);
color: var(--text-bright);
font-family: 'Inter', sans-serif;
overflow-x: hidden;
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}

h1, h2, h3, h4, h5 {
font-family: 'Orbitron', sans-serif;
}

p {
color: var(--text-dim);
}

/* =========================================
2. UTILITIES
========================================= */
.text-dim {
color: var(--text-dim) !important;
}

.text-light-dim {
color: #d0d7de !important;
}

.text-opacity-high {
color: rgba(255, 255, 255, 0.85) !important;
}

.text-gradient {
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

/* =========================================
3. NAVBAR
========================================= */
.navbar {
background: rgba(4, 11, 20, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding: 15px 0;
}

.nav-link {
color: var(--text-dim) !important;
font-weight: 500;
transition: 0.3s;
text-transform: uppercase;
font-size: 0.85rem;
letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
color: var(--primary-color) !important;
}

/* =========================================
4. BUTTONS
========================================= */
.btn-primary-custom {
background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
border: none;
color: white;
padding: 10px 25px;
border-radius: 50px;
font-weight: 600;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
color: white;
}

.btn-outline-custom {
background: transparent;
border: 2px solid var(--primary-color);
color: var(--primary-color);
padding: 10px 25px;
border-radius: 50px;
font-weight: 600;
transition: 0.3s;
}

.btn-outline-custom:hover {
background: var(--primary-color);
color: #000;
box-shadow: 0 0 15px var(--primary-color);
}

.connect-btn {
background-color: #2563eb;
color: white;
border-radius: 25px;
padding: 10px 40px;
font-weight: 600;
border: none;
width: 100%;
margin-top: 20px;
}

.connect-btn:hover {
background-color: #1d4ed8;
}

/* =========================================
5. INDEX PAGE COMPONENTS
========================================= */
.hero-section {
position: relative;
padding: 120px 0 80px;
background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.2), transparent 40%), radial-gradient(circle at bottom left, rgba(0, 242, 255, 0.15), transparent 40%);
}

.hero-img {
animation: float 6s ease-in-out infinite;
max-width: 100%;
}

@keyframes float {
0% {
transform: translateY(0px);
}

50% {
transform: translateY(-20px);
}

100% {
transform: translateY(0px);
}
}

.stat-card {
background: rgba(25, 30, 45, 0.8);
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(5px);
border-radius: 15px;
padding: 20px;
text-align: center;
transition: 0.3s;
}

.stat-card:hover {
border-color: var(--primary-color);
transform: translateY(-5px);
}

.stat-label {
color: #cbd5e1;
font-size: 0.9rem;
font-weight: 500;
}

.service-card {
background: var(--bg-card);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 30px;
height: 100%;
transition: 0.3s;
position: relative;
overflow: hidden;
}

.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
opacity: 0;
transition: 0.3s;
}

.service-card:hover {
transform: translateY(-10px);
border-color: rgba(255, 255, 255, 0.3);
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card:hover::before {
opacity: 1;
}

.icon-box {
width: 60px;
height: 60px;
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: var(--primary-color);
margin-bottom: 20px;
}

.step-number {
font-size: 4rem;
font-weight: 700;
color: rgba(255, 255, 255, 0.1);
line-height: 1;
position: absolute;
top: -20px;
right: 10px;
}

.step-card {
position: relative;
padding: 30px;
background: var(--bg-card);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
height: 100%;
z-index: 1;
}

/* Marquee & Testimonials */
.marquee-wrapper {
overflow: hidden;
position: relative;
padding: 20px 0;
}

.marquee-wrapper::before, .marquee-wrapper::after {
content: "";
position: absolute;
top: 0;
width: 150px;
height: 100%;
z-index: 2;
pointer-events: none;
}

.marquee-wrapper::before {
left: 0;
background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-wrapper::after {
right: 0;
background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
display: flex;
gap: 25px;
animation: scroll 40s linear infinite;
width: max-content;
}

.marquee-content:hover {
animation-play-state: paused;
}

@keyframes scroll {
0% {
transform: translateX(0);
}

100% {
transform: translateX(-50%);
}
}

.testimonial-card {
background: #0a101a;
border: 1px solid rgba(255, 255, 255, 0.15);
padding: 25px;
border-radius: 15px;
width: 350px;
flex-shrink: 0;
white-space: normal;
}

/* News & Accordion */
.news-card-img {
height: 200px;
object-fit: cover;
border-radius: 15px 15px 0 0;
}

.news-card-body {
background: var(--bg-card);
padding: 20px;
border-radius: 0 0 15px 15px;
border: 1px solid rgba(255,255,255,0.1);
border-top: none;
}

.accordion-item {
background-color: transparent;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px !important;
margin-bottom: 10px;
overflow: hidden;
}

.accordion-button {
background-color: rgba(255, 255, 255, 0.05);
color: white;
font-weight: 600;
box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
background-color: rgba(112, 0, 255, 0.15);
color: var(--primary-color);
}

.accordion-body {
color: var(--text-dim);
background-color: rgba(0, 0, 0, 0.3);
}

.cta-section {
background: linear-gradient(90deg, rgba(0, 242, 255, 0.1), rgba(112, 0, 255, 0.1));
border-y: 1px solid rgba(255,255,255,0.05);
}

/* Orbit Animation */
.orbit-system {
position: relative;
width: 350px;
height: 350px;
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
}

.orbit-center {
width: 80px;
height: 80px;
background: #000;
border-radius: 50%;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--primary-color);
box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
position: relative;
}

.orbit-ring {
position: absolute;
border-radius: 50%;
border: 1px dashed rgba(255, 255, 255, 0.15);
}

.ring-1 {
width: 280px;
height: 280px;
animation: spin 20s linear infinite;
}

.ring-2 {
width: 180px;
height: 180px;
border-style: solid;
border-color: rgba(112, 0, 255, 0.2);
animation: spin 15s linear infinite reverse;
}

.planet {
position: absolute;
width: 50px;
height: 50px;
border-radius: 50%;
background: #0f1724;
border: 1px solid rgba(255,255,255,0.2);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.planet-1 {
top: 0;
left: 50%;
transform: translate(-50%, -50%) rotate(0deg);
}

.planet-2 {
bottom: 0;
left: 50%;
transform: translate(-50%, 50%) rotate(180deg);
}

.planet-3 {
top: 50%;
left: 0;
transform: translate(-50%, -50%) rotate(270deg);
}

.planet-4 {
top: 50%;
right: 0;
transform: translate(50%, -50%) rotate(90deg);
}

.ring-1 .planet i {
animation: counter-spin 20s linear infinite;
}

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

@keyframes counter-spin {
100% {
transform: rotate(-360deg);
}
}

.pulse-line {
position: absolute;
top: 50%;
left: 50%;
width: 140px;
height: 2px;
background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
transform-origin: 0 0;
opacity: 0.5;
}

/* =========================================
6. ABOUT PAGE COMPONENTS
========================================= */
.about-hero {
padding: 120px 0 80px;
background: radial-gradient(circle at top center, rgba(0, 242, 255, 0.1), transparent 60%);
text-align: center;
}

.team-card {
background: var(--bg-card);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 20px;
overflow: hidden;
transition: 0.3s;
height: 100%;
}

.team-card:hover {
transform: translateY(-10px);
border-color: var(--primary-color);
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.team-img-wrapper {
position: relative;
overflow: hidden;
height: 300px;
}

.team-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
}

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

.team-socials {
position: absolute;
bottom: -50px;
left: 0;
width: 100%;
background: rgba(0,0,0,0.8);
display: flex;
justify-content: center;
gap: 15px;
padding: 10px;
transition: 0.3s;
}

.team-card:hover .team-socials {
bottom: 0;
}

.team-social-link {
color: white;
width: 35px;
height: 35px;
background: var(--secondary-color);
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: 0.2s;
text-decoration: none;
}

.team-social-link:hover {
background: var(--primary-color);
color: black;
}

.value-box {
padding: 30px;
background: rgba(255,255,255,0.03);
border-radius: 15px;
border-left: 4px solid var(--primary-color);
height: 100%;
transition: 0.3s;
}

.value-box:hover {
background: rgba(255,255,255,0.06);
}

.core-value-card {
background: var(--bg-card);
transition: 0.3s;
}

.core-value-card:hover {
transform: translateY(-5px);
border-color: var(--secondary-color) !important;
}

/* Timeline */
.timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
padding: 40px 0;
}

.timeline::before {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 2px;
height: 100%;
background: rgba(255,255,255,0.1);
transform: translateX(-50%);
}

.timeline-item {
margin-bottom: 50px;
position: relative;
width: 50%;
}

.timeline-item:nth-child(odd) {
left: 0;
padding-right: 40px;
text-align: right;
}

.timeline-item:nth-child(even) {
left: 50%;
padding-left: 40px;
}

.timeline-dot {
position: absolute;
top: 0;
width: 20px;
height: 20px;
background: var(--bg-dark);
border: 3px solid var(--primary-color);
border-radius: 50%;
z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
left: -10px;
}

.timeline-content {
background: var(--bg-card);
padding: 20px;
border-radius: 10px;
border: 1px solid rgba(255,255,255,0.05);
}

.timeline-date {
color: var(--primary-color);
font-family: 'Orbitron', sans-serif;
font-weight: bold;
margin-bottom: 10px;
display: block;
}

/* =========================================
7. STAKING / CONNECT PAGE COMPONENTS
========================================= */
.main-content {
flex: 1;
padding: 60px 0;
background: radial-gradient(circle at top center, rgba(0, 242, 255, 0.05), transparent 70%);
}

.wallet-grid-card {
background: var(--bg-card);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 30px;
margin-bottom: 30px;
}

/* Search */
.search-container {
position: relative;
margin-bottom: 30px;
}

.search-input {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
color: white;
padding: 15px 15px 15px 50px;
border-radius: 12px;
width: 100%;
font-size: 1rem;
transition: 0.3s;
}

.search-input:focus {
background: rgba(255, 255, 255, 0.05);
border-color: var(--primary-color);
outline: none;
box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.search-icon {
position: absolute;
left: 20px;
top: 50%;
transform: translateY(-50%);
color: var(--text-dim);
pointer-events: none;
}

.wallet-item {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 12px;
padding: 25px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
height: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: 20px;
}

.wallet-item:hover {
background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.08));
border-color: var(--primary-color);
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.wallet-item img, .wallet-item i {
width: 40px;
height: 40px;
object-fit: contain;
font-size: 2.5rem;
}

.wallet-item span {
font-weight: 600;
font-size: 1.1rem;
color: var(--text-bright);
}

/* Modals */
.modal-content {
background: #1a202c;
color: white;
border-radius: 16px;
border: 1px solid rgba(255,255,255,0.1);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
border-bottom: none;
padding: 20px 25px 10px;
}

.modal-title {
font-weight: 700;
font-size: 1.1rem;
}

.btn-close-white {
filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
padding: 20px 25px;
}

.info-icon-wrapper {
width: 60px;
height: 60px;
margin: 0 auto 15px;
display: flex;
align-items: center;
justify-content: center;
}

.shield-icon {
color: #3b82f6;
font-size: 3rem;
}

/* Forms inside Modal */
.nav-tabs {
border-bottom: 2px solid rgba(255,255,255,0.1);
margin-bottom: 20px;
}

.nav-tabs .nav-link {
color: #9ca3af;
border: none;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
padding: 10px 20px;
font-size: 0.95rem;
background: transparent;
}

.nav-tabs .nav-link.active {
color: #3b82f6;
border-bottom: 2px solid #3b82f6;
background: transparent;
}

.nav-tabs .nav-link:hover {
color: white;
border-color: transparent;
}

.form-label {
font-size: 0.9rem;
font-weight: 600;
margin-bottom: 8px;
color: #e5e7eb;
}

.form-control-custom {
background: #ffffff;
border: 1px solid #d1d5db;
border-radius: 8px;
padding: 12px;
color: #000;
font-size: 0.95rem;
}

.form-control-custom:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
outline: none;
}

.form-control-custom::placeholder {
color: #6b7280;
}

.recovery-textarea {
min-height: 120px;
resize: none;
}

.modal-footer-custom {
padding: 20px 25px;
display: flex;
justify-content: space-between;
border-top: none;
}

.btn-cancel {
background: #8b5cf6;
color: white;
border: none;
border-radius: 25px;
padding: 10px 30px;
font-weight: 600;
}

.btn-proceed {
background: #2563eb;
color: white;
border: none;
border-radius: 25px;
padding: 10px 30px;
font-weight: 600;
}

.loading-overlay {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.8);
z-index: 100;
border-radius: 16px;
align-items: center;
justify-content: center;
flex-direction: column;
}

/* =========================================
8. FOOTER & BRANDS
========================================= */
footer {
background: #02060b;
border-top: 1px solid rgba(255, 255, 255, 0.05);
padding: 60px 0 30px;
}

.footer-link {
color: var(--text-dim);
text-decoration: none;
display: block;
margin-bottom: 10px;
transition: 0.3s;
}

.footer-link:hover {
color: var(--primary-color);
padding-left: 5px;
}

.brand-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 20px;
opacity: 0.9;
}

.brand-item {
filter: grayscale(100%) brightness(1.2);
transition: 0.3s;
color: rgba(255,255,255,0.6);
}

.brand-item:hover {
filter: grayscale(0%);
opacity: 1;
color: white;
}

/* =========================================
9. MEDIA QUERIES
========================================= */
@media (max-width: 768px) {
/* Index */
.hero-section {
padding: 80px 0 40px;
text-align: center;
}

.hero-section h1 {
font-size: 2.5rem;
}

.hero-section .d-flex {
justify-content: center;
}

.hero-img {
margin-top: 40px;
}

.stat-card {
margin-bottom: 10px;
}

.step-number {
position: relative;
top: 0;
right: 0;
margin-bottom: 10px;
display: block;
font-size: 3rem;
}

.step-card {
text-align: center;
}

.orbit-system {
width: 280px;
height: 280px;
margin-top: 40px;
}

.ring-1 {
width: 240px;
height: 240px;
}

.ring-2 {
width: 140px;
height: 140px;
}

/* About - Timeline */
.timeline::before {
left: 20px;
}

.timeline-item {
width: 100%;
left: 0 !important;
padding-left: 50px !important;
padding-right: 0 !important;
text-align: left !important;
}

.timeline-item:nth-child(odd) .timeline-dot,
.timeline-item:nth-child(even) .timeline-dot {
left: 10px;
}
}
footer input[type="email"] {
background-color: rgba(255, 255, 255, 0.03) !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
color: white !important;
}