/* ══════════════════════════════════════════════════════════
   DEV DASHBOARD VIEW
   ══════════════════════════════════════════════════════════ */
.dev-dashboard-view {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    background: var(--bg-primary, #0e1621);
}

/* Dev Dashboard Hero */
.ddv-hero {
    position: relative;
    padding: 40px 40px 30px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.ddv-hero-bg {
    display: none;
}

.ddv-hero-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.ddv-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.ddv-icon {
    font-size: 48px;
}

.ddv-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.ddv-beta-badge {
    padding: 6px 12px;
    background: rgba(0, 217, 163, 0.15);
    border: 1px solid rgba(0, 217, 163, 0.4);
    border-radius: 6px;
    color: #00d9a3;
    font-size: 12px;
    font-weight: 700;
}

.ddv-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Dev Dashboard Tabs */
.ddv-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 40px;
    background: var(--bg-secondary, #151f2b);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.ddv-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ddv-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.ddv-tab.active {
    background: rgba(0, 217, 163, 0.15);
    color: #00d9a3;
}

.ddv-tab-icon {
    font-size: 18px;
}

/* Dev Dashboard Body */
.ddv-body {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.ddv-tab-content {
    display: none;
}

.ddv-tab-content.active {
    display: block;
}

.ddv-section-header {
    margin-bottom: 32px;
}

.ddv-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.ddv-section-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Bots Grid */
.ddv-bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.ddv-bot-card {
    background: var(--bg-secondary, #151f2b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    cursor: pointer;
}

.ddv-bot-card:hover {
    border-color: rgba(0, 217, 163, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 217, 163, 0.15);
}

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

.ddv-bot-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.ddv-bot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.ddv-bot-info {
    flex: 1;
}

.ddv-bot-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.ddv-bot-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.ddv-bot-status.online {
    background: rgba(67, 181, 129, 0.2);
    color: #43b581;
}

.ddv-bot-status.offline {
    background: rgba(123, 129, 146, 0.2);
    color: #7b8192;
}

.ddv-bot-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.ddv-bot-stats {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.ddv-bot-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.ddv-bot-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #00d9a3;
}

/* Empty State */
.ddv-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.ddv-empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.ddv-empty-state h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
}

.ddv-empty-state p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

/* Form */
.ddv-form-card {
    max-width: 600px;
    background: var(--bg-secondary, #151f2b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
}

.ddv-form-group {
    margin-bottom: 24px;
}

.ddv-form-group label {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.ddv-form-group input[type="text"],
.ddv-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.ddv-form-group input:focus,
.ddv-form-group textarea:focus {
    outline: none;
    border-color: #00d9a3;
}

.ddv-form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.ddv-help-text {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

.ddv-avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ddv-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ddv-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ddv-avatar-placeholder {
    font-size: 40px;
}

.ddv-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ddv-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ddv-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* Buttons */
.ddv-btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #00d9a3;
    color: #0e1621;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ddv-btn-primary:hover {
    background: #00c293;
    transform: translateY(-1px);
}

.ddv-btn-secondary {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ddv-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Documentation */
.ddv-docs-grid {
    display: grid;
    gap: 24px;
}

.ddv-doc-card {
    background: var(--bg-secondary, #151f2b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.ddv-doc-card h3 {
    font-size: 20px;
    color: #00d9a3;
    margin-bottom: 16px;
}

.ddv-doc-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ddv-doc-card ul {
    list-style: none;
    padding: 0;
}

.ddv-doc-card ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

.ddv-doc-card ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00d9a3;
    font-weight: 700;
}

.ddv-doc-card pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-top: 12px;
}

.ddv-doc-card code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #00d9a3;
    line-height: 1.6;
}

/* Tokens List */
.ddv-tokens-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ddv-token-card {
    background: var(--bg-secondary, #151f2b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.ddv-token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ddv-token-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.ddv-token-container {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.ddv-token-container input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 14px;
}

.ddv-token-container input:focus {
    outline: none;
}

.ddv-token-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.ddv-token-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Dev nav button in sidebar */
.dev-nav-btn-side {
    position: relative;
    overflow: hidden;
}

.dev-nav-btn-side .spnb-dev-icon {
    font-size: 18px;
}

.dev-nav-btn-side .dev-beta-chip {
    padding: 2px 8px;
    background: rgba(0, 217, 163, 0.15);
    border: 1px solid rgba(0, 217, 163, 0.3);
    border-radius: 4px;
    color: #00d9a3;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

.dev-nav-btn-side .spnb-code {
    position: absolute;
    font-size: 14px;
    opacity: 0.15;
    pointer-events: none;
    animation: floatCode 3s ease-in-out infinite;
}

.dev-nav-btn-side .spnb-code--1 {
    top: 5%;
    right: 10%;
    animation-delay: 0s;
}

.dev-nav-btn-side .spnb-code--2 {
    top: 60%;
    right: 5%;
    animation-delay: 1s;
}

.dev-nav-btn-side .spnb-code--3 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes floatCode {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Mobile */
@media (max-width: 768px) {
    .ddv-hero { padding: 40px 20px; }
    .ddv-tabs { padding: 12px 20px; }
    .ddv-body { padding: 20px; }
    .ddv-bots-grid { grid-template-columns: 1fr; }
    .ddv-hero h1 { font-size: 32px; }
}

/* ----------------------------------------------------------
   DEV DOCS VIEW
   ---------------------------------------------------------- */
.dev-docs-view {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    background: var(--bg-primary, #0e1621);
    z-index: 1;
}

/* Hero */
.ddocs-hero {
    position: relative;
    padding: 40px 40px 30px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.ddocs-hero-bg {
    display: none;
}

.ddocs-hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.ddocs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.ddocs-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(0, 217, 163, 0.4);
}

.ddocs-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
}

.ddocs-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Container with sidebar */
.ddocs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    padding: 40px 20px;
}

/* Sidebar */
.ddocs-sidebar {
    flex-shrink: 0;
    width: 250px;
    position: sticky;
    top: 20px;
    height: fit-content;
    z-index: 10;
}

.ddocs-nav-section {
    margin-bottom: 24px;
}

.ddocs-nav-section h3 {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.ddocs-nav-link {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.ddocs-nav-link:hover {
    background: rgba(0, 217, 163, 0.1);
    color: #00d9a3;
    transform: translateX(4px);
}

.ddocs-nav-link.active {
    background: rgba(0, 217, 163, 0.15);
    color: #00d9a3;
    font-weight: 600;
}

/* Main Content */
.ddocs-content {
    flex: 1;
    min-width: 0;
}

.ddocs-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ddocs-section:last-child {
    border-bottom: none;
}

.ddocs-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    scroll-margin-top: 20px;
}

.ddocs-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 32px 0 16px 0;
}

.ddocs-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #00d9a3;
    margin: 20px 0 12px 0;
}

.ddocs-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0 0 16px 0;
    font-size: 16px;
}

.ddocs-section ul,
.ddocs-section ol {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.ddocs-section li {
    margin-bottom: 8px;
}

.ddocs-section code {
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.2);
    color: #00d9a3;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ''Courier New'', monospace;
    font-size: 14px;
}

.ddocs-section a {
    color: #00d9a3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.ddocs-section a:hover {
    border-bottom-color: #00d9a3;
}

/* Info Box */
.ddocs-info-box,
.ddocs-warning-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 217, 163, 0.08);
    border-left: 4px solid #00d9a3;
    border-radius: 8px;
    margin: 20px 0;
}

.ddocs-warning-box {
    background: rgba(255, 165, 0, 0.08);
    border-left-color: #ffa500;
}

.ddocs-info-icon,
.ddocs-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ddocs-info-box strong,
.ddocs-warning-box strong {
    color: white;
    display: block;
    margin-bottom: 8px;
}

.ddocs-info-box p,
.ddocs-warning-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.ddocs-info-box ul {
    margin: 8px 0 0 0;
}

/* Code Block */
.ddocs-code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.ddocs-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ddocs-code-lang {
    font-size: 12px;
    font-weight: 700;
    color: #00d9a3;
    text-transform: uppercase;
}

.ddocs-code-file {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.ddocs-code-block pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
}

.ddocs-code-block code {
    font-family: ''Courier New'', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    background: none;
    border: none;
    padding: 0;
}

/* Feature List */
.ddocs-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ddocs-feature-list li {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #00d9a3;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ddocs-feature-list li strong {
    color: white;
}

/* Event Card */
.ddocs-event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.ddocs-event-card h4 {
    margin-top: 0;
}

.ddocs-event-card p {
    margin-bottom: 16px;
}

.ddocs-event-card .ddocs-code-block {
    margin-bottom: 0;
}

/* Table */
.ddocs-table {
    overflow-x: auto;
    margin: 20px 0;
}

.ddocs-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
}

.ddocs-table th {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 600;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ddocs-table td {
    padding: 16px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ddocs-table tr:last-child td {
    border-bottom: none;
}

.ddocs-table code {
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.2);
    color: #00d9a3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* Support Section */
.ddocs-support {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.05) 0%, rgba(0, 217, 163, 0.02) 100%);
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 16px;
    padding: 40px;
}

.ddocs-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.ddocs-support-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;
}

.ddocs-support-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 163, 0.4);
    box-shadow: 0 8px 24px rgba(0, 217, 163, 0.15);
}

.ddocs-support-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ddocs-support-card h3 {
    color: white;
    font-size: 20px;
    margin: 0 0 8px 0;
}

.ddocs-support-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
    font-size: 14px;
}

.ddocs-support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00d9a3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.ddocs-support-link:hover {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .ddocs-container {
        flex-direction: column;
    }
    
    .ddocs-sidebar {
        position: static;
        width: 100%;
    }
    
    .ddocs-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .ddocs-hero {
        padding: 40px 20px;
    }
    
    .ddocs-hero h1 {
        font-size: 32px;
    }
    
    .ddocs-section h2 {
        font-size: 28px;
    }
    
    .ddocs-support-grid {
        grid-template-columns: 1fr;
    }
}

/* Full Docs Button */
.ddv-full-docs-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00d9a3 0%, #00c293 100%);
    border: none;
    border-radius: 8px;
    color: #0a1a2a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 217, 163, 0.3);
}

.ddv-full-docs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 163, 0.4);
}

.ddv-full-docs-btn:active {
    transform: translateY(0);
}

/* ----------------------------------------------------------
   DEV NAVIGATION
   ---------------------------------------------------------- */
.dev-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 26, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 163, 0.2);
    z-index: 1000;
}

.dev-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.dev-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dev-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.3s;
}

.dev-nav-logo:hover {
    color: #00d9a3;
}

.dev-nav-logo svg {
    color: #00d9a3;
}

.dev-nav-badge {
    padding: 4px 10px;
    background: rgba(0, 217, 163, 0.15);
    border: 1px solid rgba(0, 217, 163, 0.4);
    border-radius: 6px;
    color: #00d9a3;
    font-size: 11px;
    font-weight: 700;
}

.dev-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dev-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.dev-nav-link:hover {
    color: white;
}

.dev-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.dev-nav-user:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dev-nav-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.dev-nav-user span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Adjust body padding for fixed nav - only for dev pages */
body:has(.dev-nav) {
    padding-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .dev-nav-container {
        padding: 0 16px;
    }
    
    .dev-nav-link {
        display: none;
    }
    
    .dev-nav-user span {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════
   TOKEN CARD V2 — belle carte avec warning + copy + regen
   ══════════════════════════════════════════════════════════ */
.ddv-token-card-v2 {
    background: linear-gradient(135deg, #0d1b2e 0%, #0a1520 100%);
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ddv-token-card-v2:hover {
    border-color: rgba(0, 217, 163, 0.4);
    box-shadow: 0 0 20px rgba(0, 217, 163, 0.08);
}
.ddv-token-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ddv-token-bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ddv-token-bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,217,163,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
}
.ddv-token-bot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ddv-token-bot-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.ddv-token-badge {
    font-size: 11px;
    font-weight: 600;
    color: #00d9a3;
    background: rgba(0,217,163,0.12);
    border: 1px solid rgba(0,217,163,0.25);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ddv-token-warning-banner {
    background: rgba(255, 180, 0, 0.08);
    border-top: 1px solid rgba(255,180,0,0.15);
    border-bottom: 1px solid rgba(255,180,0,0.15);
    color: #ffd060;
    font-size: 12.5px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ddv-token-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.3);
}
.ddv-token-input {
    flex: 1;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    padding: 10px 14px;
    letter-spacing: 0.5px;
    transition: border-color 0.2s;
    min-width: 0;
}
.ddv-token-input:focus { outline: none; border-color: rgba(0,217,163,0.4); }
.ddv-token-action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ddv-token-action-btn:hover {
    background: rgba(0,217,163,0.15);
    border-color: rgba(0,217,163,0.4);
    color: #00d9a3;
    transform: scale(1.05);
}
.ddv-token-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    flex-wrap: wrap;
}
.ddv-token-regen-btn {
    background: none;
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff8080;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ddv-token-regen-btn:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.6);
    color: #ff5555;
}
.ddv-token-regen-hint {
    font-size: 11.5px;
    color: rgba(255,255,255,0.35);
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   MODAL OVERLAY (No-Slot + Regen)
   ══════════════════════════════════════════════════════════ */
.ddv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    backdrop-filter: blur(4px);
}
.ddv-modal-overlay.active { opacity: 1; }
.ddv-modal-box {
    background: linear-gradient(145deg, #0d1b2e, #0a1520);
    border: 1px solid rgba(0,217,163,0.25);
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: ddvModalIn 0.3s ease;
}
@keyframes ddvModalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0);     opacity: 1; }
}
.ddv-noslot-icon, .ddv-regen-icon {
    font-size: 52px;
    margin-bottom: 16px;
    display: block;
}
.ddv-noslot-title, .ddv-regen-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.ddv-noslot-desc, .ddv-regen-desc {
    font-size: 14.5px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 20px;
}
.ddv-noslot-desc strong, .ddv-regen-desc strong { color: #fff; }
.ddv-regen-warning {
    background: rgba(255,80,80,0.1);
    border: 1px solid rgba(255,80,80,0.3);
    color: #ff8080;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.ddv-noslot-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.ddv-noslot-btn-shop {
    background: linear-gradient(135deg, #00d9a3, #00b389);
    color: #0a1520;
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.ddv-noslot-btn-shop:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ddv-noslot-btn-delete {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ddv-noslot-btn-delete:hover { background: rgba(255,255,255,0.12); }
.ddv-noslot-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px;
}
.ddv-noslot-close:hover { color: rgba(255,255,255,0.9); }

/* Slot badge in tab */
.ddv-slot-badge {
    background: rgba(0,217,163,0.15);
    color: #00d9a3;
    border: 1px solid rgba(0,217,163,0.3);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    margin-left: 4px;
}

/* =====================================================
   DEV SHOP — Currency toggle & cards
   ===================================================== */

.ddv-currency-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ddv-currency-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.ddv-currency-toggle {
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 4px;
}
.ddv-currency-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
}
.ddv-currency-btn.active {
    background: rgba(0,217,163,0.18);
    color: #00d9a3;
    border: 1px solid rgba(0,217,163,0.35);
}
.ddv-currency-btn:hover:not(.active) {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
}
.ddv-help-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.ddv-help-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.ddv-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ddv-shop-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ddv-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.ddv-shop-card--premium {
    border-color: rgba(255,215,0,0.3);
    background: linear-gradient(135deg, rgba(255,215,0,0.07) 0%, rgba(20,20,35,0.95) 60%);
}
.ddv-shop-card--premium:hover {
    box-shadow: 0 12px 40px rgba(255,215,0,0.15);
}
.ddv-shop-card--slot {
    border-color: rgba(0,217,163,0.25);
}
.ddv-shop-card--slot:hover {
    box-shadow: 0 12px 40px rgba(0,217,163,0.1);
}
.ddv-shop-card--pack {
    border-color: rgba(0,217,163,0.4);
    background: linear-gradient(135deg, rgba(0,217,163,0.07) 0%, rgba(20,20,35,0.95) 60%);
}
.ddv-shop-card--pack5 {
    border-color: rgba(176,111,255,0.4);
    background: linear-gradient(135deg, rgba(176,111,255,0.08) 0%, rgba(20,20,35,0.95) 60%);
}
.ddv-shop-card--pack5:hover {
    box-shadow: 0 12px 40px rgba(176,111,255,0.15);
}

.ddv-shop-card-badge {
    position: absolute;
    top: -10px;
    right: 18px;
    background: rgba(0,217,163,0.9);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}
.ddv-shop-card-badge--gold {
    background: rgba(255,215,0,0.9);
}

.ddv-shop-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ddv-shop-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.ddv-shop-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.ddv-shop-card-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.ddv-shop-card-price {
    text-align: center;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ddv-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.ddv-price-period {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.ddv-shop-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.ddv-shop-features li {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.ddv-shop-buy-btn {
    background: rgba(0,217,163,0.15);
    border: 1px solid rgba(0,217,163,0.4);
    color: #00d9a3;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.ddv-shop-buy-btn:hover {
    background: rgba(0,217,163,0.28);
    transform: translateY(-1px);
}
.ddv-shop-buy-btn--premium {
    background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,165,0,0.12));
    border-color: rgba(255,215,0,0.45);
    color: #ffd700;
}
.ddv-shop-buy-btn--premium:hover {
    background: linear-gradient(135deg, rgba(255,215,0,0.28), rgba(255,165,0,0.22));
}
.ddv-shop-buy-btn--gold {
    background: linear-gradient(135deg, rgba(176,111,255,0.18), rgba(120,80,200,0.12));
    border-color: rgba(176,111,255,0.45);
    color: #b06fff;
}
.ddv-shop-buy-btn--gold:hover {
    background: linear-gradient(135deg, rgba(176,111,255,0.28), rgba(120,80,200,0.22));
}

.ddv-shop-footer {
    text-align: center;
    padding: 20px 0 8px;
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.ddv-shop-footer p { margin: 4px 0; }
.ddv-shop-footer a { color: #00d9a3; text-decoration: none; }
.ddv-shop-footer a:hover { text-decoration: underline; }

/* =====================================================
   PURCHASE MODAL
   ===================================================== */

.ddv-purchase-modal-box {
    width: 420px;
    max-width: 95vw;
    padding: 32px;
    text-align: center;
}
.ddv-purchase-modal-header {
    margin-bottom: 20px;
}
.ddv-purchase-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.ddv-purchase-modal-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}
.ddv-purchase-currency-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}
.ddv-purchase-price-display {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin: 12px 0 24px;
    letter-spacing: -1px;
}
.ddv-purchase-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ddv-purchase-stripe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #635bff, #4f46e5);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(99,91,255,0.35);
}
.ddv-purchase-stripe-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,91,255,0.45);
}
.ddv-purchase-stripe-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}
.ddv-purchase-help-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s;
}
.ddv-purchase-help-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.ddv-purchase-secure-note {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 14px;
}

/* =====================================================
   PAYMENT SUCCESS MODAL
   ===================================================== */

.ddv-pay-success-box {
    text-align: center;
    padding: 36px 32px;
}
.ddv-pay-success-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: ddvBounceIn 0.5s ease;
}
@keyframes ddvBounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.ddv-pay-success-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #00d9a3;
    margin-bottom: 10px;
}
.ddv-pay-success-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =====================================================
   INVOICE TABLE
   ===================================================== */

.ddv-invoice-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.ddv-invoice-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.12);
    border-top-color: #00d9a3;
    border-radius: 50%;
    animation: ddvSpin 0.8s linear infinite;
}
@keyframes ddvSpin { to { transform: rotate(360deg); } }

.ddv-invoice-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
}
.ddv-invoice-empty h3 {
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.ddv-invoice-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 10px;
}

.ddv-invoice-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.ddv-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ddv-invoice-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
.ddv-invoice-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.ddv-invoice-table tbody tr:last-child { border-bottom: none; }
.ddv-invoice-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.ddv-invoice-table td {
    padding: 13px 16px;
    color: rgba(255,255,255,0.8);
}
.ddv-inv-num {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.45) !important;
}
.ddv-inv-amount {
    font-weight: 700;
    color: #fff !important;
}
.ddv-inv-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.ddv-inv-status--ok {
    background: rgba(0,217,163,0.12);
    color: #00d9a3;
    border: 1px solid rgba(0,217,163,0.25);
}
.ddv-inv-status--pending {
    background: rgba(255,193,7,0.12);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.25);
}
