/* Docs Layout */
.docs-section {
    padding: 120px 0 60px;
    background: #0f0f13;
    min-height: 100vh;
}

/* Content Section - Footer Spacing */
.docs-content {
    padding-bottom: 80px;
}


.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.docs-nav h3 {
    color: #fff;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 24px 0 12px;
    opacity: 1;
}

.docs-nav h3:first-child {
    margin-top: 0;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav li {
    margin-bottom: 4px;
}

.docs-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.docs-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.docs-nav a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    font-weight: 500;
}

/* Main Content - RESTORED CARD STYLES */
.docs-main {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(20px);
    min-width: 0;
    /* Prevent grid blowout */
}

.docs-article {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
    color: #fff;
    /* Ensure text color is inherited/white */
}

/* Typography & Header */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.docs-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.docs-breadcrumb a:hover {
    color: #fff;
}

.docs-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.docs-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.docs-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

/* Article Content Typography */
.docs-article h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 48px 0 24px;
    color: #fff;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-article h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.docs-article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #fff;
}

.docs-article p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.docs-article ul,
.docs-article ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.docs-article li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Helper Boxes */
.info-box,
.warning-box,
.success-box {
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    display: flex;
    gap: 16px;
    line-height: 1.6;
}

.info-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.info-box i {
    color: #667eea;
    margin-top: 3px;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.warning-box i {
    color: #ffc107;
    margin-top: 3px;
}

.success-box {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.success-box i {
    color: #28a745;
    margin-top: 3px;
}

/* Code Blocks */
.code-block {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    position: relative;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    color: #e6e6e6;
    font-size: 0.9rem;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Steps (Restored from previous look) */
.step {
    display: flex;
    gap: 20px;
    margin: 32px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.requirement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.requirement-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.requirement-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.requirement-card h3 {
    color: #fff;
    margin-bottom: 16px;
    margin-top: 0;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-card li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    padding-left: 0;
}

/* Next Steps Grid */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.next-step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.next-step-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.next-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.next-step-card h3 {
    color: #fff;
    margin-bottom: 12px;
}

.next-step-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.next-step-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.next-step-link:hover {
    color: #7c8ff0;
}

/* Help Section */
.help-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
}

.help-section h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
}

.help-section a {
    color: #667eea;
}

.help-section a:hover {
    color: #7c8ff0;
}

/* Troubleshooting */
.troubleshooting-item {
    margin-bottom: 24px;
}

.troubleshooting-item h3 {
    color: #fff;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
    }

    .docs-title {
        font-size: 2rem;
    }

    .docs-main {
        padding: 24px;
    }
}

/* Header Layout Restoration */
.docs-header {
    padding-top: 120px;
    padding-bottom: 40px;
    background: transparent;
}

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

/* Account Management Grid (Features Grid) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #fff;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}