/* =============================================
 * Coded By - DARK LMNx9 (Limon Hossain)
 * GitHub - https://github.com/LMNx9-JOHNY
 * TG Group - https://t.me/+6hZVa9jGrIY4ZDRl
 * WhatsApp - https://wa.me/19707808868
 * Telegram - https://t.me/x_LMNx9
 * Website - https://lmnx9.shop
============================================= */

        .details-page { padding: calc(var(--header-height) + 20px) 0 var(--space-2xl); max-width: 100%; overflow-x: hidden; }
        
        .detail-hero {
            background: var(--bg-card); border: 1px solid var(--glass-border);
            border-radius: var(--radius-xl); padding: var(--space-2xl);
            margin-bottom: var(--space-xl); position: relative; overflow: hidden;
            max-width: 100%; box-sizing: border-box;
        }
        .detail-hero::before {
            content: ''; position: absolute; top: -40%; right: -15%;
            width: 350px; height: 350px;
            background: radial-gradient(circle, rgba(71,207,115,0.05) 0%, transparent 70%);
            border-radius: 50%;
        }
        .detail-badge {
            display: inline-block; padding: 4px 14px; border-radius: var(--radius-full);
            font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-md);
        }
        .detail-badge.free { background: rgba(71,207,115,0.08); color: var(--cp-green); border: 1px solid rgba(71,207,115,0.2); }
        .detail-badge.paid { background: rgba(240,80,110,0.08); color: var(--cp-pink); border: 1px solid rgba(240,80,110,0.2); }
        .detail-hero h1 { font-size: var(--text-4xl); color: var(--text-white); font-family: var(--font-display); margin-bottom: var(--space-sm); position: relative; z-index: 1; font-weight: 800; word-break: break-word; }
        .detail-hero .desc { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-lg); position: relative; z-index: 1; line-height: 1.7; max-width: 100%; }
        .detail-meta { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-lg); position: relative; z-index: 1; }
        .detail-meta span { color: var(--text-muted); font-size: var(--text-xs); }
        .detail-meta i { color: var(--cp-green); margin-right: 4px; }
        
        .endpoint-box {
            background: var(--bg-primary); border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg); padding: var(--space-md); display: flex;
            align-items: center; gap: var(--space-md); flex-wrap: wrap; position: relative; z-index: 1;
            max-width: 100%; box-sizing: border-box; overflow-x: auto;
        }
        .endpoint-method { background: var(--cp-green); color: #000; padding: 6px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 11px; font-family: var(--font-mono); flex-shrink: 0; }
        .endpoint-url { flex: 1; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--cp-green); word-break: break-all; min-width: 200px; }
        
        .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-lg); margin-top: var(--space-lg); max-width: 100%; }
        .detail-main { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
        .detail-section { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: var(--space-xl); max-width: 100%; box-sizing: border-box; overflow-x: auto; }
        .detail-section h3 { color: var(--text-white); font-size: var(--text-lg); margin-bottom: var(--space-md); font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
        .detail-section h3 i { color: var(--cp-green); }
        
        .params-table { width: 100%; border-collapse: collapse; min-width: 400px; }
        .params-table th { text-align: left; padding: 10px 14px; background: var(--bg-primary); color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; border-bottom: 1px solid var(--glass-border); white-space: nowrap; }
        .params-table td { padding: 10px 14px; border-bottom: 1px solid var(--glass-border); color: var(--text-secondary); font-size: var(--text-sm); }
        .param-name { color: var(--cp-green); font-family: var(--font-mono); font-weight: 600; }
        .req-badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); font-size: 10px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
        .req-badge.req { background: rgba(240,80,110,0.1); color: var(--cp-pink); }
        .req-badge.opt { background: rgba(71,207,115,0.1); color: var(--cp-green); }
        
        .code-tabs { display: flex; gap: 2px; margin-bottom: -1px; flex-wrap: wrap; }
        .code-tab { padding: 8px 16px; background: var(--bg-primary); border: 1px solid var(--glass-border); border-bottom: none; border-radius: var(--radius-md) var(--radius-md) 0 0; color: var(--text-muted); cursor: pointer; font-size: var(--text-xs); font-family: var(--font-mono); transition: all var(--transition-fast); }
        .code-tab.active { background: var(--bg-card); color: var(--cp-green); border-color: var(--glass-border); }
        .code-panel { display: none; background: var(--bg-primary); border: 1px solid var(--glass-border); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); overflow: hidden; position: relative; }
        .code-panel.active { display: block; }
        .code-panel pre { margin: 0; padding: var(--space-lg); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.7; color: var(--cp-green); overflow-x: auto; max-height: 350px; white-space: pre-wrap; word-break: break-all; }
        
        .sidebar { display: flex; flex-direction: column; gap: var(--space-md); }
        .side-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: var(--space-lg); }
        .side-card h4 { color: var(--text-white); font-size: var(--text-sm); margin-bottom: var(--space-md); font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
        .side-card h4 i { color: var(--cp-green); }
        .info-list { list-style: none; padding: 0; }
        .info-list li { display: flex; justify-content: space-between; padding: var(--space-xs) 0; border-bottom: 1px solid var(--glass-border); color: var(--text-secondary); font-size: var(--text-xs); }
        .info-list li:last-child { border-bottom: none; }
        .info-list li span:last-child { color: var(--text-white); font-weight: 500; }
        
        .related-item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1px solid var(--glass-border); text-decoration: none; color: var(--text-secondary); font-size: var(--text-xs); transition: all var(--transition-fast); }
        .related-item:hover { color: var(--cp-green); }
        .related-item:last-child { border-bottom: none; }
        
        @media (max-width: 900px) {
            .detail-grid { grid-template-columns: 1fr; }
            .detail-hero h1 { font-size: var(--text-2xl); }
            .detail-hero { padding: var(--space-xl); }
            .sidebar { order: -1; }
        }
        @media (max-width: 480px) {
            .endpoint-box { flex-direction: column; align-items: flex-start; }
            .endpoint-url { font-size: 11px; }
            .detail-meta { gap: var(--space-sm); }
        }