/* .SOL DOMAINS - Solana Name Service */

.sol-container {
    max-width: clamp(1000px, 85vw, 1800px);
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Search Section */
.sol-search-section {
    margin-bottom: 2rem;
}

.sol-search-box {
    display: flex;
    gap: 0.5rem;
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(20, 241, 149, 0.6);
    padding: 1rem 1.25rem;
    align-items: center;
}

.sol-search-box:focus-within {
    border-left-color: #14F195;
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.1);
}

.sol-search-prefix {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #14F195;
    letter-spacing: 2px;
    white-space: nowrap;
}

.sol-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.sol-search-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.sol-search-suffix {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(20, 241, 149, 0.6);
    letter-spacing: 1px;
}

.sol-search-btn {
    background: rgba(20, 241, 149, 0.15);
    border: 1px solid rgba(20, 241, 149, 0.3);
    color: #14F195;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sol-search-btn:hover {
    background: rgba(20, 241, 149, 0.25);
    border-color: #14F195;
    box-shadow: 0 0 15px rgba(20, 241, 149, 0.2);
}

/* Wallet Connection */
.sol-wallet-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(16, 16, 16, 0.6);
    border: 1px solid rgba(20, 241, 149, 0.15);
}

.sol-wallet-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.sol-wallet-status.connected {
    color: #14F195;
}

.sol-wallet-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(20, 241, 149, 0.7);
    letter-spacing: 1px;
    margin-left: 0.5rem;
}

.sol-wallet-btn {
    background: rgba(20, 241, 149, 0.12);
    border: 1px solid rgba(20, 241, 149, 0.3);
    color: #14F195;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sol-wallet-btn:hover {
    background: rgba(20, 241, 149, 0.25);
    border-color: #14F195;
}

.sol-wallet-btn.disconnect {
    border-color: rgba(255, 50, 50, 0.3);
    color: rgba(255, 50, 50, 0.7);
    background: rgba(255, 50, 50, 0.08);
}

.sol-wallet-btn.disconnect:hover {
    border-color: rgba(255, 50, 50, 0.6);
    background: rgba(255, 50, 50, 0.15);
}

/* Tabs */
.sol-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sol-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sol-tab:hover {
    color: rgba(255, 255, 255, 0.6);
}

.sol-tab.active {
    color: #14F195;
    border-bottom-color: #14F195;
}

/* Results Panel */
.sol-results {
    min-height: 200px;
}

.sol-result-card {
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(20, 241, 149, 0.4);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.sol-result-domain {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 2px;
}

.sol-result-domain .sol-ext {
    color: #14F195;
}

.sol-result-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 0.3rem 0.75rem;
    border: 1px solid;
}

.sol-result-status.available {
    color: #14F195;
    border-color: rgba(0, 204, 68, 0.3);
    background: rgba(0, 204, 68, 0.08);
}

.sol-result-status.taken {
    color: rgba(255, 170, 0, 0.8);
    border-color: rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.08);
}

.sol-result-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 700px) {
    .sol-result-body { grid-template-columns: 1fr; }
}

.sol-result-field {
    margin-bottom: 0.5rem;
}

.sol-result-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: rgba(20, 241, 149, 0.6);
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
    display: block;
}

.sol-result-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    word-break: break-all;
}

.sol-result-value a {
    color: #14F195;
    text-decoration: none;
}

.sol-result-value a:hover {
    text-decoration: underline;
}

/* Register Button */
.sol-register-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.25), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(20, 241, 149, 0.5);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-decoration: none;
}

.sol-register-btn:hover {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.4), rgba(168, 85, 247, 0.3));
    border-color: #14F195;
    box-shadow: 0 0 25px rgba(20, 241, 149, 0.25);
    transform: translateY(-1px);
}

.sol-register-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* My Domains List */
.sol-domains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) { .sol-domains-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sol-domains-grid { grid-template-columns: 1fr; } }

.sol-domain-card {
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(20, 241, 149, 0.4);
    padding: 1rem 1.25rem;
    transition: all 0.25s ease;
}

.sol-domain-card:hover {
    border-left-color: #14F195;
    background: rgba(20, 20, 20, 0.95);
}

.sol-domain-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.sol-domain-name .sol-ext {
    color: #14F195;
}

.sol-domain-fav {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: #14F195;
    letter-spacing: 1px;
}

/* Loading / Empty States */
.sol-loading {
    text-align: center;
    padding: 3rem;
}

.sol-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(20, 241, 149, 0.2);
    border-top-color: #14F195;
    border-radius: 50%;
    animation: sol-spin 0.8s linear infinite;
}

@keyframes sol-spin {
    to { transform: rotate(360deg); }
}

.sol-loading-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
    margin-top: 0.75rem;
}

.sol-empty {
    text-align: center;
    padding: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

.sol-error {
    background: rgba(255, 50, 50, 0.08);
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-left: 3px solid rgba(255, 50, 50, 0.5);
    padding: 1rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 50, 50, 0.8);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Reverse Lookup */
.sol-reverse-box {
    display: flex;
    gap: 0.5rem;
    background: rgba(16, 16, 16, 0.85);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(20, 241, 149, 0.4);
    padding: 1rem 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sol-reverse-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sol-reverse-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Stats Bar */
.sol-stats-bar {
    display: flex;
    gap: 2rem;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(20, 241, 149, 0.1);
}

.sol-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.sol-stat-value {
    color: #14F195;
}

/* Price Display */
.sol-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.sol-price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #ffffff;
}

.sol-price-currency {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(20, 241, 149, 0.7);
    letter-spacing: 2px;
}

.sol-price-usd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Wallet Modal */
.sol-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sol-modal.hidden {
    display: none !important;
}

.sol-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.sol-modal-content {
    position: relative;
    background: rgba(12, 12, 12, 0.98);
    border: 1px solid rgba(20, 241, 149, 0.3);
    border-top: 2px solid #14F195;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
}

.sol-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(20, 241, 149, 0.15);
}

.sol-modal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #14F195;
    letter-spacing: 3px;
}

.sol-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sol-modal-close:hover {
    border-color: rgba(255, 50, 50, 0.5);
    color: rgba(255, 50, 50, 0.8);
}

.sol-modal-body {
    padding: 0.75rem;
}

.sol-modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(20, 241, 149, 0.1);
}

.sol-modal-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

/* Wallet Options */
.sol-wallet-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(20, 241, 149, 0.12);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.4rem;
    text-decoration: none;
}

.sol-wallet-option:hover {
    background: rgba(20, 241, 149, 0.1);
    border-color: rgba(20, 241, 149, 0.35);
    transform: translateX(3px);
}

.sol-wallet-option.not-installed {
    opacity: 0.45;
}

.sol-wallet-option.not-installed:hover {
    opacity: 0.7;
}

.sol-wallet-option-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.sol-wallet-option-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    flex: 1;
}

.sol-wallet-option-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 1px;
    color: #14F195;
}

.sol-wallet-option.not-installed .sol-wallet-option-status {
    color: rgba(255, 255, 255, 0.3);
}

.sol-wallet-divider {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    padding: 0.75rem 1rem 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
}

/* ─── Registration Modal ──────────────────────────────────── */

.sol-reg-modal-content {
    max-width: 480px;
}

.sol-reg-summary {
    padding: 0.5rem;
}

.sol-reg-domain-display {
    text-align: center;
    padding: 1.5rem 0 1.25rem;
    border-bottom: 1px solid rgba(20, 241, 149, 0.15);
    margin-bottom: 1rem;
}

.sol-reg-domain-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: 3px;
}

.sol-reg-domain-ext {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: #14F195;
    letter-spacing: 3px;
}

.sol-reg-details {
    margin-bottom: 1rem;
}

.sol-reg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sol-reg-row:last-child {
    border-bottom: none;
}

.sol-reg-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
}

.sol-reg-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.sol-reg-price {
    color: #14F195;
    font-size: 0.75rem;
}

.sol-reg-warning {
    background: rgba(255, 170, 0, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-left: 3px solid rgba(255, 170, 0, 0.5);
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: rgba(255, 170, 0, 0.85);
    letter-spacing: 1px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sol-reg-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.sol-reg-cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sol-reg-cancel-btn:hover {
    border-color: rgba(255, 50, 50, 0.4);
    color: rgba(255, 50, 50, 0.7);
    background: rgba(255, 50, 50, 0.08);
}

.sol-reg-confirm-btn {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.25), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(20, 241, 149, 0.5);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sol-reg-confirm-btn:hover {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.4), rgba(168, 85, 247, 0.3));
    border-color: #14F195;
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.2);
}

/* Registration Status */
.sol-reg-status {
    margin-top: 1rem;
}

.sol-reg-status-card {
    padding: 1rem;
    border: 1px solid;
    border-left-width: 3px;
}

.sol-reg-status-card.processing {
    border-color: rgba(20, 241, 149, 0.3);
    border-left-color: rgba(20, 241, 149, 0.6);
    background: rgba(20, 241, 149, 0.04);
}

.sol-reg-status-card.pending {
    border-color: rgba(255, 170, 0, 0.3);
    border-left-color: rgba(255, 170, 0, 0.6);
    background: rgba(255, 170, 0, 0.04);
}

.sol-reg-status-card.success {
    border-color: rgba(20, 241, 149, 0.4);
    border-left-color: #14F195;
    background: rgba(20, 241, 149, 0.06);
}

.sol-reg-status-card.error {
    border-color: rgba(255, 50, 50, 0.3);
    border-left-color: rgba(255, 50, 50, 0.6);
    background: rgba(255, 50, 50, 0.04);
}

.sol-reg-status-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sol-reg-status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #ffffff;
    letter-spacing: 2px;
}

.sol-reg-status-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sol-reg-status-icon.success {
    color: #14F195;
}

.sol-reg-status-icon.error {
    color: rgba(255, 50, 50, 0.8);
}

.sol-reg-tx-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.sol-reg-tx-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #14F195;
    text-decoration: none;
    letter-spacing: 1px;
}

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

.sol-reg-error-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 50, 50, 0.75);
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.sol-reg-success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
