/* Dashboard Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: 1px solid var(--satoshi-border);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    background: var(--satoshi-white);
    color: var(--satoshi-text);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--satoshi-orange);
    color: var(--satoshi-white);
    border-color: var(--satoshi-orange);
}

.btn-primary:hover:not(:disabled) {
    background: #e07f00;
    border-color: #e07f00;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--satoshi-gray);
    color: var(--satoshi-text);
    border-color: var(--satoshi-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--satoshi-border);
}

.btn-success {
    background: #28a745;
    color: var(--satoshi-white);
    border-color: #28a745;
}

.btn-error {
    background: #dc3545;
    color: var(--satoshi-white);
    border-color: #dc3545;
}

.btn-ghost {
    background: transparent;
    color: var(--satoshi-text);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--satoshi-gray);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--satoshi-black);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--satoshi-white);
    border: 1px solid var(--satoshi-border);
    border-radius: var(--border-radius-md);
    color: var(--satoshi-text);
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--satoshi-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--satoshi-dark-gray);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-help {
    font-size: var(--font-size-xs);
    color: var(--satoshi-dark-gray);
    margin-top: var(--spacing-xs);
}

/* Status */
.status {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    border: 1px solid;
}

.status-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.status-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.status-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #856404;
}

.status-info {
    background: rgba(247, 147, 26, 0.1);
    border-color: var(--satoshi-orange);
    color: var(--satoshi-orange);
}

/* Cards */
.card {
    background: var(--satoshi-white);
    border: 1px solid var(--satoshi-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--satoshi-orange);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--satoshi-border);
    background: var(--satoshi-light-gray);
    font-weight: 600;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--satoshi-border);
    background: var(--satoshi-light-gray);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--satoshi-white);
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--satoshi-border);
}

.table th {
    background: var(--satoshi-light-gray);
    font-weight: 600;
    color: var(--satoshi-black);
}

.table tbody tr:hover {
    background: var(--satoshi-gray);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--satoshi-orange);
    color: var(--satoshi-white);
}

.badge-success {
    background: #28a745;
    color: var(--satoshi-white);
}

.badge-warning {
    background: #ffc107;
    color: var(--satoshi-black);
}

.badge-error {
    background: #dc3545;
    color: var(--satoshi-white);
}

.badge-secondary {
    background: var(--satoshi-gray);
    color: var(--satoshi-text);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: var(--satoshi-dark-gray);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--satoshi-black);
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    margin-bottom: var(--spacing-lg);
}

/* CSS для Mining Dashboard - добавить в css/components.css */

/* Mining Controls */
.mining-controls-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg, #fff);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.pool-selector {
    flex: 1;
    max-width: 300px;
}

.mining-actions {
    display: flex;
    gap: 10px;
}

/* Mining Overview */
.mining-overview {
    margin-bottom: 30px;
}

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

.stat-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0;
}

/* Pools Grid */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pool-card {
    background: var(--card-bg, #fff);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.pool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pool-card.selected {
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pool-card.active {
    border-left: 4px solid var(--success-color, #10b981);
}

.pool-card.inactive {
    border-left: 4px solid var(--warning-color, #f59e0b);
}

.pool-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.pool-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.pool-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.pool-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
}

.pool-status.inactive {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color, #f59e0b);
}

.pool-info {
    margin-bottom: 15px;
}

.pool-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pool-stat .label {
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
}

.pool-stat .value {
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.pool-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color, #f59e0b);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--warning-color, #f59e0b);
    margin-top: 10px;
}

.pool-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Workers Section */
.workers-section {
    margin-bottom: 30px;
}

.workers-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.worker-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.worker-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.worker-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.worker-status {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.worker-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
}

.worker-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color, #f59e0b);
}

.worker-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color, #ef4444);
}

.worker-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.worker-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.worker-stat .label {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
}

.worker-stat .value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #111827);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg, #fff);
    border: 2px dashed var(--border-color, #e5e7eb);
    border-radius: 12px;
    margin: 20px 0;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--text-primary, #111827);
}

.empty-state p {
    margin: 0 0 20px 0;
    color: var(--text-secondary, #6b7280);
    font-size: 16px;
}

/* Mining Chart */
.mining-chart-container {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.mining-chart-container h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

#hashrateChart {
width: 100%;
height: 400px;
border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mining-controls-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .mining-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .overview-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .pools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .workers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pool-actions {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .overview-cards {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .pool-card,
    .worker-card {
        padding: 15px;
    }
}

/* CSS для Pool Creation Wizard - добавить в css/components.css */

/* Pool Creation Wizard Container */
.pool-creation-wizard {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 200px);
    background: var(--card-bg, #fff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    overflow: hidden;
}

/* Wizard Progress */
.wizard-progress {
    padding: 20px 30px;
    background: var(--bg-secondary, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color, #e5e7eb);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #3b82f6), var(--primary-light, #60a5fa));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border-color, #e5e7eb);
    z-index: 1;
}

.step-indicator.active:not(:last-child)::after {
    background: var(--primary-color, #3b82f6);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color, #e5e7eb);
    color: var(--text-secondary, #6b7280);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    text-align: center;
    font-weight: 500;
}

.step-indicator.active .step-label {
    color: var(--primary-color, #3b82f6);
    font-weight: 600;
}

/* Wizard Content - ГЛАВНОЕ ИСПРАВЛЕНИЕ */
.wizard-content {
    flex: 1;
    overflow: auto; /* Добавляем overflow: auto */
    padding: 30px;
    min-height: 0; /* Важно для flex-элементов с overflow */
}

/* Wizard Steps */
.wizard-step {
    height: 100%;
    overflow: auto; /* Добавляем overflow: auto для шагов */
    padding-right: 10px; /* Отступ для скроллбара */
}

.wizard-step h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.wizard-step p {
    margin: 0 0 30px 0;
    color: var(--text-secondary, #6b7280);
    font-size: 16px;
    line-height: 1.5;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #111827);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    margin-top: 4px;
}

/* DKG Setup */
.dkg-setup {
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.dkg-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Card Component */
.card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: var(--bg-secondary, #f8fafc);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.card-body {
    padding: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Badge Component */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color, #f59e0b);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color, #ef4444);
}

/* Public Key Display */
.pubkey-display {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 6px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.pubkey-display label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary, #111827);
}

.pubkey-display input {
    width: 100%;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    cursor: pointer;
}

/* Participants */
.participants-section {
    margin-top: 20px;
}

.add-participant {
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-input {
    flex: 1;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: var(--text-primary, #111827);
}

.participant-role {
    background: var(--primary-color, #3b82f6);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Review Section */
.review-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-section {
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
}

.review-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

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

.review-label {
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
}

.review-value {
    font-size: 14px;
    color: var(--text-primary, #111827);
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.participants-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.participant-preview {
    padding: 8px 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: var(--text-primary, #111827);
}

/* Wizard Actions */
.wizard-actions {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-secondary, #f8fafc);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Status Components */
.status {
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0;
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color, #f59e0b);
    color: var(--warning-color, #f59e0b);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color, #ef4444);
    color: var(--error-color, #ef4444);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-content {
        padding: 20px;
    }

    .wizard-progress {
        padding: 15px 20px;
    }

    .wizard-actions {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .step-indicators {
        gap: 10px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .input-group {
        flex-direction: column;
    }

    .participant-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .participant-actions {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wizard-step h3 {
        font-size: 20px;
    }

    .wizard-content {
        padding: 15px;
    }

    .card-body {
        padding: 15px;
    }

    .add-participant,
    .review-section,
    .dkg-setup {
        padding: 15px;
    }
}

/* Scrollbar Styling */
.wizard-content::-webkit-scrollbar,
.wizard-step::-webkit-scrollbar {
    width: 6px;
}

.wizard-content::-webkit-scrollbar-track,
.wizard-step::-webkit-scrollbar-track {
    background: var(--bg-secondary, #f8fafc);
    border-radius: 3px;
}

.wizard-content::-webkit-scrollbar-thumb,
.wizard-step::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e7eb);
    border-radius: 3px;
}

.wizard-content::-webkit-scrollbar-thumb:hover,
.wizard-step::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary, #6b7280);
}

/* CSS для Pool Manager - добавить в css/components.css */

/* Pool Filters */
.pool-filters-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg, #fff);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Pools Header */
.pools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.pools-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.pools-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
}

/* Pools Grid */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.pool-card {
    background: var(--card-bg, #fff);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pool-card.active {
    border-left: 4px solid var(--success-color, #10b981);
}

.pool-card.inactive {
    border-left: 4px solid var(--warning-color, #f59e0b);
    opacity: 0.8;
}

.pool-card.no-access {
    border-left: 4px solid var(--text-secondary, #6b7280);
}

/* Pool Header */
.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pool-title {
    flex: 1;
}

.pool-title h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.pool-symbol {
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pool-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pool-status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color, #10b981);
}

.pool-status-badge.inactive {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color, #f59e0b);
}

/* Pool Info */
.pool-info {
    margin-bottom: 20px;
}

.pool-basic-info {
    margin-bottom: 15px;
}

.pool-mining-info {
    padding-top: 15px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
}

.info-row .value {
    font-size: 13px;
    color: var(--text-primary, #111827);
    font-weight: 600;
}

.info-row .value.has-role {
    color: var(--primary-color, #3b82f6);
}

.info-row .value.no-role {
    color: var(--text-secondary, #6b7280);
    font-style: italic;
}

.pool-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color, #f59e0b);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--warning-color, #f59e0b);
    margin-top: 10px;
}

/* Pool Actions */
.pool-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pool-actions .btn {
    flex: 1;
    min-width: 90px;
}

/* Pool Footer */
.pool-footer {
    padding-top: 10px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    text-align: center;
}

.pool-footer small {
    color: var(--text-secondary, #6b7280);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 11px;
}

/* Role-based styling */
.pool-card.role-owner .pool-header::before {
    content: '👑';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    opacity: 0.3;
}

.pool-card.role-miner .pool-header::before {
    content: '⛏️';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    opacity: 0.3;
}

.pool-card.role-custodial .pool-header::before {
    content: '🔐';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    opacity: 0.3;
}

/* Pool Details Modal */
.pool-details-modal {
    max-width: 800px;
    width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pool-details-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary, #111827);
}

.tab-btn.active {
    color: var(--primary-color, #3b82f6);
    border-bottom-color: var(--primary-color, #3b82f6);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-section {
    background: var(--bg-secondary, #f8fafc);
    border-radius: 8px;
    padding: 20px;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #111827);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-item .label {
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
}

.detail-item .value {
    font-size: 14px;
    color: var(--text-primary, #111827);
    font-weight: 600;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

/* Mining Stats in Modal */
.mining-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-card h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #111827);
}

.no-mining-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #6b7280);
}

/* Loading States */
.pools-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color, #e5e7eb);
    border-top: 3px solid var(--primary-color, #3b82f6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pool-filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }

    .pools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pools-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pools-stats {
        justify-content: center;
    }

    .pool-actions {
        flex-direction: column;
    }

    .pool-actions .btn {
        flex: none;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mining-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .detail-item .value {
        max-width: 50%;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pool-card {
        padding: 15px;
    }

    .pool-details-modal {
        width: 95vw;
        max-height: 90vh;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .mining-stats {
        grid-template-columns: 1fr;
    }

    .detail-section {
        padding: 15px;
    }
}

/* Animation for pool cards */
@keyframes poolCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pool-card {
    animation: poolCardSlideIn 0.3s ease-out;
}

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

/* DKG Phase Indicator */
.dkg-phase-indicator {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.dkg-phase-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.phase-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.phase.completed .phase-number {
    background: var(--success-color);
    color: white;
}

.phase-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* DKG Actions */
.phase-actions {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Participants Status */
.dkg-participants-status {
    margin-top: 20px;
}

.participant-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

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

.status-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-indicator.submitted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-indicator.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.current-user {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary-color);
}

.dkg-session-actions {
    text-align: center;
    margin-bottom: 20px;
}

.divider {
    margin: 15px 0;
    text-align: center;
    position: relative;
    color: var(--text-secondary);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: var(--bg-primary);
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.session-selector-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.sessions-list {
    max-height: 400px;
    overflow-y: auto;
}

.session-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.session-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

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

.session-id {
    font-weight: 600;
}

.session-state {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.state-commitments { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.state-shares { background: rgba(59, 130, 246, 0.1); color: var(--primary-color); }
.state-finalization { background: rgba(16, 185, 129, 0.1); color: var(--success-color); }
.state-finalized { background: rgba(34, 197, 94, 0.1); color: var(--success-color); }

.session-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.session-detail {
    display: flex;
    justify-content: space-between;
}

.session-input-modal .modal-content {
    max-width: 500px;
}

.info-message {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ DASHBOARD === */
/* Добавить в существующий CSS файл */

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
}

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

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.gradient-blue {
    --gradient-start: #3b82f6;
    --gradient-end: #1d4ed8;
}

.gradient-green {
    --gradient-start: #10b981;
    --gradient-end: #059669;
}

.gradient-orange {
    --gradient-start: #f59e0b;
    --gradient-end: #d97706;
}

.gradient-purple {
    --gradient-start: #8b5cf6;
    --gradient-end: #7c3aed;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Pool Controls */
.pool-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-filters {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.view-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #3b82f6;
    color: white;
}

/* Pools Grid */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.pool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.pool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pool-card.active {
    border-color: #10b981;
}

.pool-card.inactive {
    opacity: 0.7;
}

.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pool-title h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.pool-symbol {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.pool-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pool-status.active {
    background: #dcfce7;
    color: #166534;
}

.pool-status.inactive {
    background: #fef3c7;
    color: #92400e;
}

.pool-info {
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.info-row .label {
    color: #64748b;
    font-size: 0.9rem;
}

.info-row .value {
    font-weight: 500;
    color: #1e293b;
}

.pool-actions {
    display: flex;
    gap: 0.5rem;
}

/* Добавить в ваш CSS файл */
.role-required-error {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.role-required-error .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.role-required-error h3 {
    color: var(--warning-color);
    margin-bottom: 0.5rem;
}

.role-required-error .error-details {
    text-align: left;
    margin: 2rem 0;
}

.role-required-error .info-box {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.role-required-error .info-box ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.role-required-error ol {
    padding-left: 1.5rem;
}

/* Pools List View */
.pools-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pools-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.table-header {
    display: contents;
    font-weight: 600;
    color: #374151;
}

.table-header span {
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.table-row {
    display: contents;
}

.table-row span {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
}

.pool-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pool-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pool-status-dot.active {
    background: #10b981;
}

.pool-status-dot.inactive {
    background: #f59e0b;
}

/* Role Cards */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
}

.role-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #f1f5f9;
    border-radius: 50%;
}

.role-info h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.role-info p {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.role-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.permission {
    padding: 0.25rem 0.5rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* NFT Grid */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.nft-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nft-image {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 2rem;
}

.nft-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.nft-badge.active {
    background: rgba(16, 185, 129, 0.8);
}

.nft-badge.inactive {
    background: rgba(245, 158, 11, 0.8);
}

.nft-info {
    padding: 1rem;
}

.nft-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #1e293b;
}

.nft-details p {
    margin: 0.25rem 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Request Tabs */
.request-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.request-tab-btn {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.request-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

.request-tab-btn.active .count {
    background: #3b82f6;
    color: white;
}

.request-content {
    display: none;
}

.request-content.active {
    display: block;
}

/* Request Cards */
.request-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.request-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.request-info h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 0.9rem;
}

.request-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

.request-status .status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.request-details {
    margin: 1rem 0;
}

.request-details p {
    margin: 0.25rem 0;
    font-size: 0.8rem;
    color: #4b5563;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Recent Activity */
.recent-activity h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.activity-list {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.activity-item {
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

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

.activity-icon {
    width: 2rem;
    height: 2rem;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0;
    color: #1e293b;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
}

/* Badge Templates */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.template-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.template-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.template-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.template-info p {
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Section Header Updates */
.section-title h2 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.section-title p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.section-actions .icon {
    margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .pools-grid {
        grid-template-columns: 1fr;
    }

    .pool-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filters {
        min-width: auto;
    }

    .dashboard-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .pools-table {
        grid-template-columns: 1fr;
    }

    .table-header span:not(:first-child),
    .table-row span:not(:first-child) {
        display: none;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .request-tabs {
        overflow-x: auto;
    }

    .roles-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .section-actions {
        justify-content: center;
    }
}

/* === СТИЛИ ДЛЯ ИСПРАВЛЕННЫХ КОМПОНЕНТОВ === */

/* Pool Details Modal */
.pool-details-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.pool-details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-item .label {
    font-weight: 500;
    color: #6b7280;
    min-width: 120px;
}

.detail-item .value {
    color: #1f2937;
    text-align: right;
    flex: 1;
}

.detail-item .value.monospace {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

.detail-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
}

/* Settings Section */
.settings-navigation {
    margin-bottom: 2rem;
}

.settings-nav {
    display: flex;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-radius: 6px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.settings-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #3b82f6;
}

.settings-tab.active {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-icon {
    font-size: 1.125rem;
}

.tab-text {
    font-size: 0.875rem;
}

.settings-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.settings-panel {
    display: none;
    padding: 2rem;
}

.settings-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.panel-header h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.panel-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
}

/* Toggle Settings */
.toggle-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.toggle-info {
    flex: 1;
}

.toggle-label {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
    display: block;
}

.toggle-info small {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-slider {
    width: 48px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="checkbox"]:checked + .toggle-slider {
    background: #3b82f6;
}

input[type="checkbox"]:checked + .toggle-slider::after {
    left: 26px;
}

input[type="checkbox"] {
    display: none;
}

/* Role Display */
.role-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: capitalize;
}

/* Network Status */
.network-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

.network-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.network-indicator.success {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.network-indicator.warning {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.network-indicator.error {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* Security Status */
.security-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.status-info {
    flex: 1;
}

.status-label {
    font-weight: 500;
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

.status-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.status-indicator {
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.status-indicator.success {
    color: #10b981;
}

.status-indicator.warning {
    color: #f59e0b;
}

.status-indicator.error {
    color: #ef4444;
}

.security-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group .form-input {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
}

/* Form Improvements */
.form-help {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.form-group .form-help {
    margin-top: 0.5rem;
}

/* Stats Cards (используемые в overview) */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    color: white;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card.gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.stat-card.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.stat-card.gradient-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-info p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Recent Activity Improvements */
.recent-activity {
    margin-top: 2rem;
}

.recent-activity h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Request Tabs */
.request-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 8px;
}

.request-tab-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 4px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.request-tab-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.request-tab-btn.active {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.request-tab-btn .count {
    background: #e5e7eb;
    color: #374151;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-tab-btn.active .count {
    background: #dbeafe;
    color: #1e40af;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .settings-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .settings-tab {
        flex-shrink: 0;
        min-width: auto;
    }

    .toggle-setting {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .toggle-switch {
        align-self: flex-end;
    }

    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .status-indicator {
        margin-left: 0;
        align-self: flex-end;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }
}

/* Modal Improvements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

/* НОВЫЕ СТИЛИ ДЛЯ СИСТЕМЫ АВТОРИЗАЦИИ */

/* Authorization status indicators */
.auth-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-badge.authorized {
    background: #10b98120;
    color: #10b981;
}

.auth-badge.unauthorized {
    background: #ef444420;
    color: #ef4444;
}

.auth-badge.pending {
    background: #f59e0b20;
    color: #f59e0b;
}

.auth-badge.checking {
    background: #6b728020;
    color: #6b7280;
}

/* Authorization required states */
.auth-required-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.auth-required-state h3 {
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-required-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.auth-status {
    margin: 1rem 0;
}

.auth-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-info {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.auth-info p {
    margin: 0.25rem 0;
    color: #92400e;
}

/* Navigation restrictions */
.nav-item.restricted .nav-link {
    opacity: 0.5;
    position: relative;
}

.nav-item.restricted .lock-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    opacity: 0.7;
}

.nav-link.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

/* Admin mode indicators */
.nft-admin-mode .admin-request {
    border-left: 4px solid #10b981;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-required {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.admin-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Request status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

/* Enhanced modals for authorization */
.access-request-modal {
    max-width: 500px;
}

.access-request-info {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0ea5e9;
}

.access-request-info p {
    margin: 0.5rem 0;
    color: #0c4a6e;
}

/* Authorization message container */
.auth-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.auth-message.authorized {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-message.unauthorized {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.auth-message.pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.auth-message.checking {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* Enhanced role badges */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 2px;
}

.role-badge-user {
    background: #e5e7eb;
    color: #374151;
}

.role-badge-pool-owner {
    background: #d1fae5;
    color: #065f46;
}

.role-badge-miner {
    background: #fed7aa;
    color: #9a3412;
}

.role-badge-custodial {
    background: #e0e7ff;
    color: #3730a3;
}

.role-badge-initiator {
    background: #fce7f3;
    color: #be185d;
}

/* Loading states */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Enhanced stats cards with gradients */
.stat-card.gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.stat-card.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-card.gradient-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-card.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

/* Authorization status card */
.auth-status-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.auth-status-card.authorized {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.auth-status-card.unauthorized {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fef1f1 100%);
}

.auth-status-card.pending {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
}

.auth-benefits li {
    padding: 0.25rem 0;
    color: #374151;
}

.auth-benefits li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

/* Enhanced empty states */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .auth-actions {
        flex-direction: column;
    }

    .admin-actions {
        flex-direction: column;
    }

    .auth-required-state {
        padding: 2rem 1rem;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .auth-required-state {
        background: #1f2937;
        border-color: #374151;
    }

    .auth-required-state h3 {
        color: #f9fafb;
    }

    .auth-required-state p {
        color: #d1d5db;
    }
}

/* Pool Management Modal Improvements */
.pool-management-modal {
    max-width: 600px;
    width: 90%;
}

.pool-management-modal .management-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.pool-management-modal .management-section h4 {
    margin-bottom: 15px;
    color: #f59e0b;
    font-size: 16px;
    font-weight: 600;
}

.pool-management-modal .form-group {
    margin-bottom: 15px;
}

.pool-management-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.pool-management-modal .form-control {
    width: 100%;
    min-width: 400px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
}

.pool-management-modal .form-control:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.pool-management-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Унифицированные оранжевые кнопки */
.pool-management-modal button.btn {
    width: 100%;
    padding: 12px 20px;
    margin-top: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pool-management-modal button.btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pool-management-modal button.btn:active {
    transform: translateY(0);
}

/* Кнопка Close - серая */
.pool-management-modal .modal-actions button.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    margin-top: 15px;
}

.pool-management-modal .modal-actions button.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* Info grid */
.pool-management-modal .info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.pool-management-modal .info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pool-management-modal .info-item .label {
    color: #9ca3af;
    font-size: 13px;
}

.pool-management-modal .info-item .value {
    color: #e5e7eb;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .pool-management-modal {
        max-width: 95%;
    }

    .pool-management-modal .form-control {
        min-width: 100%;
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
}

/* Worker Claim Modal - Фирменный стиль */
.worker-claim-modal {
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.modal-icon {
    font-size: 48px;
    line-height: 1;
}

.modal-title-section h3 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #666);
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    color: white;
}

.info-card.primary-info {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.info-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.info-icon {
    font-size: 24px;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.info-item .label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.info-item .value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
}

/* Form Section */
.form-section {
    margin: 24px 0;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 8px;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

.label-icon {
    font-size: 18px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input[type="password"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    line-height: 1.5;
}

/* Alert Box */
.alert-box {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-box.warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.alert-content ul {
    margin: 0;
    padding-left: 20px;
    color: #78350f;
}

.alert-content li {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-icon {
    font-size: 16px;
}

/* Workers Table - скрыть Name колонку */
.workers-table td:nth-child(2) {
    color: #9ca3af;
    font-style: italic;
}

.text-muted {
    color: #9ca3af;
    font-size: 12px;
}

/* Добавить в styles.css */

.pool-switch-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.worker-info-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.worker-info-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-item .value {
    font-weight: 500;
    color: var(--text-primary);
}

.pool-selection-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pool-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.pool-option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-primary);
}

.pool-option:not(.disabled):hover {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pool-option.current {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.pool-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pool-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pool-option-header h5 {
    margin: 0;
    color: var(--text-primary);
}

.current-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pool-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pool-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.pool-detail .detail-label {
    color: var(--text-secondary);
}

.pool-detail .detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.pool-option-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.access-admin {
    color: var(--danger-color);
    font-weight: 600;
}

.access-pool {
    color: var(--primary-color);
    font-weight: 600;
}

.access-miner {
    color: var(--success-color);
    font-weight: 600;
}
