/* ========== POOL CREATOR - SATOSHIFI БРЕНДИНГ ========== */

/* Основной контейнер wizard */
.pool-creation-wizard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Прогресс wizard в контенте */
.wizard-progress {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
    color: #28a745;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #6b7280;
}

.step.active .step-number {
    background: #f7931a;
    color: white;
    border-color: #f7931a;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #6b7280;
}

.step.active .step-label,
.step.completed .step-label {
    color: #0a0a0a;
}

.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #f7931a;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Контент wizard */
.wizard-content {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 12px 0;
}

.step-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
}

/* ========== GOVERNANCE TYPE STEP ========== */

.governance-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.governance-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.governance-option:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f7931a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.governance-option:hover {
    border-color: #f7931a;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.15);
    transform: translateY(-2px);
}

.governance-option:hover:before {
    transform: scaleX(1);
}

.governance-option.selected {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
}

.governance-option.selected:before {
    transform: scaleX(1);
}

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

.option-header h4 {
    margin: 0;
    color: #0a0a0a;
    font-size: 24px;
    font-weight: 700;
}

.option-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.option-badge.available {
    background: #28a745;
    color: white;
}

.option-badge.unavailable {
    background: #dc3545;
    color: white;
}

.option-badge:not(.available):not(.unavailable) {
    background: #f7931a;
    color: white;
}

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

.pros h5, .requirements h5, .best-for h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.pros ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.pros li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 20px;
}

.pros li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* FROST Sessions Preview */
.frost-sessions-preview {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.no-sessions {
    text-align: center;
    padding: 40px 20px;
}

.empty-state h5 {
    color: #0a0a0a;
    font-size: 20px;
    margin-bottom: 16px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 20px;
}

.empty-state ol {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 24px auto;
    color: #6b7280;
}

.sessions-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

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

.session-count {
    font-weight: 600;
    color: #0a0a0a;
}

.status-indicator {
    font-size: 12px;
    font-weight: 600;
    color: #28a745;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.session-preview {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-preview:hover {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
}

.session-preview.selected {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.1);
}

.session-id {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.session-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.selected-governance {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.selected-governance h4 {
    color: #28a745;
    margin: 0 0 16px 0;
    font-size: 18px;
}

.selected-session {
    background: white;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* ========== FORM ELEMENTS ========== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 8px;
    font-size: 16px;
}

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

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #f7931a;
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

.form-input.code-input {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.form-help {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
}

.radio-option input[type="radio"] {
    margin: 4px 0 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    color: #0a0a0a;
    font-size: 16px;
    margin-bottom: 4px;
}

.radio-content small {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Checkbox Options */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
}

.checkbox-option input[type="checkbox"] {
    margin: 4px 0 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-content {
    flex: 1;
}

.checkbox-content strong {
    display: block;
    color: #0a0a0a;
    font-size: 16px;
    margin-bottom: 4px;
}

.checkbox-content small {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* ========== CALCULATOR SECTION ========== */

.calculator-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.calculator-section h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 8px 0;
}

.section-description {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 24px;
}

.calculator-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.calculator-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calculator-option:hover {
    border-color: #f7931a;
    box-shadow: 0 4px 16px rgba(247, 147, 26, 0.1);
}

.calculator-option.selected {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
}

.calc-header {
    margin-bottom: 12px;
}

.calc-header h5 {
    margin: 0 0 4px 0;
    color: #0a0a0a;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-badge {
    background: #28a745;
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.calc-title {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.calc-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ========== BITCOIN SETTINGS ========== */

.integration-section {
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #f7931a;
}

.integration-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 20px 0;
}

.integration-info {
    margin-bottom: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.status-indicator {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-indicator.online {
    background: #28a745;
    color: white;
}

.status-indicator.offline {
    background: #dc3545;
    color: white;
}

.status-indicator:not(.online):not(.offline) {
    background: #6c757d;
    color: white;
}

.status-text {
    color: #0a0a0a;
    font-weight: 500;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.detail-item .label {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.detail-item .value {
    color: #0a0a0a;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

/* Advanced Settings */
.advanced-settings {
    margin-top: 32px;
}

.advanced-settings summary {
    font-weight: 600;
    color: #0a0a0a;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.advanced-content {
    padding-top: 24px;
}

/* ========== CONFIRMATION STEP ========== */

.confirmation-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    border-left: 4px solid #28a745;
}

.summary-section h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 24px 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.summary-item .label {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
}

.summary-item .value {
    color: #0a0a0a;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.summary-item .value.frost {
    color: #7c3aed;
}

.summary-item .value.single {
    color: #059669;
}

/* Gas Estimation */
.gas-estimation {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.gas-estimation h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 20px 0;
}

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

.gas-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.gas-item .label {
    color: #6b7280;
    font-weight: 500;
}

.gas-item .value {
    color: #0a0a0a;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* ========== PROGRESS INDICATORS ========== */

.creation-progress {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.creation-progress h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 24px 0;
    text-align: center;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.progress-step.progress {
    border-left-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
}

.progress-step.success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.progress-step.error {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.step-icon {
    width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.step-text {
    flex: 1;
    color: #0a0a0a;
    font-weight: 500;
}

/* ========== SUCCESS RESULT ========== */

.creation-success {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.success-header {
    background: #28a745;
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
}

.success-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.success-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

.pool-addresses {
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.pool-addresses h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 24px 0;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #f7931a;
}

.address-item .label {
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    min-width: 100px;
}

.address-item .address {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #0a0a0a;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.address-item .address:hover {
    background: rgba(247, 147, 26, 0.1);
}

.copy-btn {
    background: #f7931a;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #e6851a;
    transform: translateY(-1px);
}

.tx-link {
    color: #f7931a;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.tx-link:hover {
    text-decoration: underline;
}

/* Next Steps */
.next-steps {
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.next-steps h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 24px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.05);
    transform: translateY(-2px);
}

.step-card .step-icon {
    font-size: 32px;
    color: #f7931a;
    margin-bottom: 16px;
    font-weight: 700;
}

.step-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 12px 0;
}

.step-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Result Actions */
.result-actions {
    padding: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== WIZARD ACTIONS ========== */

.wizard-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wizard-actions .btn {
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 140px;
    border: none;
    cursor: pointer;
}

.wizard-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wizard-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wizard-actions .btn-primary {
    background: #f7931a;
    color: white;
}

.wizard-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.wizard-actions .btn-success {
    background: #28a745;
    color: white;
}

.wizard-actions .btn-warning {
    background: #ffc107;
    color: #0a0a0a;
}

.wizard-actions .btn-outline {
    background: transparent;
    border: 2px solid #0a0a0a;
    color: #0a0a0a;
}

.wizard-actions .btn-outline:hover {
    background: #0a0a0a;
    color: white;
}

/* Кнопки в форме */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-outline.btn-sm {
    background: transparent;
    border: 1px solid #f7931a;
    color: #f7931a;
    font-weight: 600;
}

.btn-outline.btn-sm:hover {
    background: #f7931a;
    color: white;
}

/* ========== ERROR STATES ========== */

.initialization-error {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.error-icon {
    font-size: 64px;
    color: #dc3545;
    margin-bottom: 24px;
    font-weight: 700;
}

.initialization-error h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 16px 0;
}

.error-message {
    color: #dc3545;
    font-size: 16px;
    margin-bottom: 32px;
    font-weight: 500;
}

.error-details {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 32px auto;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
}

.error-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 16px 0;
}

.error-details ul {
    margin: 0;
    padding-left: 20px;
}

.error-details li {
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .wizard-content {
        padding: 24px;
    }

    .governance-options,
    .calculator-options {
        grid-template-columns: 1fr;
    }

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

    .wizard-actions {
        flex-direction: column;
        gap: 12px;
    }

    .wizard-actions .btn {
        width: 100%;
    }

    .progress-steps {
        gap: 20px;
    }

    .step {
        min-width: 80px;
    }

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

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

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