/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #E5E7EB;
    background: linear-gradient(135deg, #0F0B1A 0%, #1A1332 50%, #2D1B69 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 11, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B5CF6;
}

.nav-logo i {
    font-size: 1.8rem;
}

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

.nav-link {
    color: #E5E7EB;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B5CF6;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.shop-link {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
}

.shop-link:hover {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    transform: translateY(-2px);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #8B5CF6;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 70px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #EC4899, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(45deg); }
}

.hero-description {
    font-size: 1.2rem;
    color: #CBD5E1;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #8B5CF6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trading Card */
.trading-card {
    background: rgba(15, 11, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-weight: 600;
    color: #E5E7EB;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #10B981;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.mini-chart-container {
    height: 120px;
    margin-bottom: 20px;
}

.market-stats {
    display: flex;
    justify-content: space-between;
}

.market-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-stat .label {
    font-size: 0.8rem;
    color: #94A3B8;
}

.market-stat .value {
    font-weight: 600;
    font-size: 1.1rem;
}

.value.up { color: #10B981; }
.value.down { color: #EF4444; }

/* Floating Background Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatRandom 20s infinite linear;
}

.floating-element:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: -5s;
}

.floating-element:nth-child(2) {
    bottom: 30%;
    left: 5%;
    animation-delay: -10s;
}

.floating-element:nth-child(3) {
    top: 60%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes floatRandom {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-100px, -100px) rotate(90deg); }
    50% { transform: translate(100px, -50px) rotate(180deg); }
    75% { transform: translate(-50px, 100px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Features Section */
.features {
    padding: 120px 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #CBD5E1;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(15, 11, 26, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #E5E7EB;
}

.feature-card p {
    color: #CBD5E1;
    line-height: 1.7;
}

/* Trading Section */
.trading-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(15, 11, 26, 0.9) 0%, rgba(26, 19, 50, 0.9) 100%);
}

.trading-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.chart-container {
    background: rgba(15, 11, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-controls {
    display: flex;
    gap: 12px;
}

.chart-select {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #E5E7EB;
    font-size: 0.9rem;
}

.chart-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#currentPrice {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E5E7EB;
}

.price-change {
    font-size: 0.9rem;
}

.price-change.up { color: #10B981; }
.price-change.down { color: #EF4444; }

.chart-wrapper {
    height: 400px;
    position: relative;
}

.market-overview {
    background: rgba(15, 11, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
    backdrop-filter: blur(20px);
}

.market-overview h3 {
    margin-bottom: 20px;
    color: #E5E7EB;
    font-weight: 600;
}

.market-grid {
    display: grid;
    gap: 12px;
}

.market-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    align-items: center;
}

.symbol {
    font-weight: 600;
    color: #E5E7EB;
}

.price {
    font-weight: 600;
    color: #CBD5E1;
}

.change {
    font-size: 0.9rem;
    font-weight: 600;
}

.change.up { color: #10B981; }
.change.down { color: #EF4444; }

/* Trading Form */
.trading-form {
    background: rgba(15, 11, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
}

.trading-form h3 {
    margin-bottom: 20px;
    color: #E5E7EB;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #CBD5E1;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #E5E7EB;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.trade-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

.sell-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.sell-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-2px);
}

/* Account Info */
.account-info {
    background: rgba(15, 11, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
}

.account-info h3 {
    margin-bottom: 20px;
    color: #E5E7EB;
    font-weight: 600;
}

.balance-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

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

.balance-item .label {
    color: #CBD5E1;
    font-size: 0.9rem;
}

.balance-item .value {
    font-weight: 600;
    color: #E5E7EB;
}

.balance-item .value.profit {
    color: #10B981;
}

.balance-item .value.loss {
    color: #EF4444;
}

/* Recent Trades */
.recent-trades {
    background: rgba(15, 11, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.recent-trades h3 {
    margin-bottom: 20px;
    color: #E5E7EB;
    font-weight: 600;
}

.trades-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.05);
}

.trade-item.win {
    border-left: 4px solid #10B981;
}

.trade-item.loss {
    border-left: 4px solid #EF4444;
}

.trade-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-pair {
    font-weight: 600;
    color: #E5E7EB;
    font-size: 0.9rem;
}

.trade-direction {
    font-size: 0.8rem;
    color: #94A3B8;
}

.trade-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.trade-amount {
    font-size: 0.8rem;
    color: #94A3B8;
}

.trade-pnl {
    font-weight: 600;
    font-size: 0.9rem;
}

.trade-pnl.profit { color: #10B981; }
.trade-pnl.loss { color: #EF4444; }

/* Documentation Section */
.documentation {
    padding: 120px 0;
    background: rgba(0, 0, 0, 0.3);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.doc-card {
    background: rgba(15, 11, 26, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.doc-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.doc-header i {
    font-size: 2rem;
    color: #8B5CF6;
}

.doc-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E5E7EB;
}

.doc-card p {
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 24px;
}

.doc-link {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.doc-link:hover {
    color: #A855F7;
    transform: translateX(5px);
}

/* Shop CTA Section */
.shop-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text p {
    font-size: 1.1rem;
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #CBD5E1;
}

.cta-feature i {
    color: #10B981;
    font-size: 1.2rem;
}

.shop-card {
    background: rgba(15, 11, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #F59E0B);
}

.shop-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
}

.shop-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #E5E7EB;
}

.shop-card p {
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 32px;
}

.shop-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: #F59E0B;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(15, 11, 26, 0.95);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #E5E7EB;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul li a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8B5CF6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-section p {
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B5CF6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-copyright p {
    color: #94A3B8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8B5CF6;
}

/* Documentation-Specific Styles */

/* Documentation Layout */
.docs-container {
    display: flex;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    background: linear-gradient(135deg, rgba(15, 11, 26, 0.95) 0%, rgba(26, 19, 50, 0.95) 100%);
}

.docs-sidebar {
    width: 300px;
    background: rgba(15, 11, 26, 0.8);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(20px);
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 100;
}

.docs-content {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    max-width: calc(100% - 300px);
}

.sidebar-content {
    padding: 30px 20px;
}

.docs-header {
    margin-bottom: 40px;
}

.docs-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #E5E7EB;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-subtitle {
    font-size: 1.1rem;
    color: #CBD5E1;
    line-height: 1.6;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    margin-bottom: 40px;
}

.sidebar-nav > li {
    margin-bottom: 8px;
}

.sidebar-nav .sidebar-link {
    display: block;
    padding: 12px 16px;
    color: #CBD5E1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .sidebar-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-left-color: #8B5CF6;
}

.sidebar-nav .sidebar-link.active {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    border-left-color: #8B5CF6;
}

.sidebar-subnav {
    list-style: none;
    margin-top: 8px;
    margin-left: 20px;
    border-left: 1px solid rgba(139, 92, 246, 0.2);
}

.sidebar-subnav .sidebar-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Documentation Search */
.docs-search {
    margin-bottom: 30px;
}

.search-input-container {
    position: relative;
}

#docs-search-input {
    width: 100%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px 12px 44px;
    color: #E5E7EB;
    font-size: 0.9rem;
}

#docs-search-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.9rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 11, 26, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 200;
    backdrop-filter: blur(20px);
    display: none;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

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

.search-result-title {
    color: #E5E7EB;
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-section {
    color: #94A3B8;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.search-result-type {
    color: #8B5CF6;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #94A3B8;
    font-size: 0.9rem;
}

/* API Reference Styles */
.api-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.api-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #E5E7EB;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-section h2 i {
    color: #8B5CF6;
}

.method-card {
    background: rgba(15, 11, 26, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-badge.get {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.method-badge.post {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.method-badge.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.method-badge.ws {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.method-badge.init {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.method-header h3 {
    color: #E5E7EB;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.method-card p {
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.method-card h4 {
    color: #E5E7EB;
    font-weight: 600;
    margin: 24px 0 12px 0;
    font-size: 1.1rem;
}

/* Parameter Tables */
.param-table {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.param-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 3fr;
    align-items: center;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.param-row:last-child {
    border-bottom: none;
}

.param-name, .param-type, .param-required, .param-desc {
    padding: 12px 16px;
    font-size: 0.9rem;
}

.param-name {
    font-weight: 600;
    color: #8B5CF6;
    font-family: 'Fira Code', monospace;
}

.param-type {
    color: #F59E0B;
    font-family: 'Fira Code', monospace;
}

.param-required {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.param-required:has-text("required") {
    color: #EF4444;
}

.param-desc {
    color: #CBD5E1;
    line-height: 1.5;
}

/* Return Information */
.return-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(139, 92, 246, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 20px;
}

.return-type {
    font-family: 'Fira Code', monospace;
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.9rem;
}

.return-desc {
    color: #CBD5E1;
    font-size: 0.9rem;
}

/* Code Blocks */
pre {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
}

pre code {
    color: #E5E7EB !important;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    color: #8B5CF6;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.copy-code-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    opacity: 1;
}

.code-language-label {
    position: absolute;
    top: 12px;
    left: 16px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    color: #8B5CF6;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Line Numbers */
.line-numbers {
    padding-left: 60px !important;
}

.line-numbers-rows {
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 40px;
    padding: 0 8px;
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.line-numbers-rows span {
    color: #6B7280;
    text-align: right;
    user-select: none;
}

/* Error Handling Section */
.error-codes h3 {
    color: #E5E7EB;
    margin-bottom: 20px;
}

.error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.error-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.error-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #EF4444;
    margin-bottom: 8px;
}

.error-title {
    font-weight: 600;
    color: #E5E7EB;
    margin-bottom: 4px;
}

.error-desc {
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.4;
}

/* Example Section Styles */
.example-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.example-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #E5E7EB;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.example-section h2 i {
    color: #8B5CF6;
}

.example-card {
    background: rgba(15, 11, 26, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.example-card h3 {
    color: #E5E7EB;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.example-description {
    margin-bottom: 24px;
}

.example-description p {
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 16px;
}

.example-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Sidebar CTA */
.sidebar-cta {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
}

.sidebar-cta h4 {
    color: #E5E7EB;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-cta p {
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.cta-button-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cta-button-small:hover {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Shop Promotion in Documentation */
.shop-promotion {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-promotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #F59E0B);
}

.promotion-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #E5E7EB;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.promotion-content h2 i {
    color: #8B5CF6;
}

.promotion-content p {
    color: #CBD5E1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.promotion-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #CBD5E1;
    font-weight: 500;
}

.promo-feature i {
    color: #10B981;
    font-size: 1.2rem;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button-large:hover {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

/* Mobile Sidebar */
.docs-sidebar-toggle {
    display: none;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #8B5CF6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.docs-sidebar-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(15, 11, 26, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(20px);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.toast-show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #E5E7EB;
}

.toast-close {
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: #E5E7EB;
}

.toast-success {
    border-left: 4px solid #10B981;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.toast-warning {
    border-left: 4px solid #F59E0B;
}

.toast-info {
    border-left: 4px solid #8B5CF6;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

/* Print Button */
.print-button {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: #8B5CF6;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.print-button:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* Responsive Documentation Styles */
@media (max-width: 1024px) {
    .docs-content {
        margin-left: 0;
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .docs-sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .docs-sidebar-toggle {
        display: block;
    }
    
    .param-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .param-name, .param-type, .param-required, .param-desc {
        padding: 8px 16px;
        border-bottom: none;
    }
    
    .param-name {
        background: rgba(139, 92, 246, 0.1);
        font-weight: 700;
    }
    
    .promotion-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        width: 280px;
    }
    
    .docs-content {
        padding: 20px 16px;
    }
    
    .docs-header h1 {
        font-size: 2rem;
    }
    
    .method-card, .example-card {
        padding: 20px;
    }
    
    .shop-promotion {
        padding: 30px 20px;
    }
    
    .promotion-content h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .toast {
        right: 16px;
        left: 16px;
        min-width: auto;
        transform: translateY(-100px);
    }
    
    .toast.toast-show {
        transform: translateY(0);
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .docs-sidebar {
        width: 100%;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .copy-code-btn {
        position: static;
        margin-top: 12px;
        align-self: flex-end;
    }
    
    .code-language-label {
        position: static;
        margin-bottom: 12px;
        display: inline-block;
    }
}

/* Print Styles */
@media print {
    .docs-sidebar,
    .back-to-top,
    .toast,
    .docs-sidebar-toggle,
    .copy-code-btn,
    .print-button {
        display: none !important;
    }
    
    .docs-content {
        margin-left: 0;
        max-width: 100%;
        padding: 0;
    }
    
    .method-card,
    .example-card {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
    
    pre {
        background: #f5f5f5 !important;
        border: 1px solid #ddd;
        color: black !important;
    }
    
    .docs-header h1 {
        color: black;
    }
    
    .api-section h2,
    .example-section h2 {
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .docs-sidebar {
        background: #000;
        border-color: #fff;
    }
    
    .method-card,
    .example-card {
        background: #000;
        border-color: #fff;
    }
    
    .sidebar-nav .sidebar-link {
        color: #fff;
    }
    
    .sidebar-nav .sidebar-link:hover,
    .sidebar-nav .sidebar-link.active {
        background: #333;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none;
    }
    
    .gradient-text {
        animation: none;
    }
    
    .status-dot {
        animation: none;
    }
}
