/* ============================================
   SOLUTIONS HUB - Styles
   Obelisk DEX - Retail / Business / Institutional
   ============================================ */

/* --- Hub Container --- */
.solutions-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* --- Hero Section --- */
.solutions-hero {
    text-align: center;
    padding: 50px 20px 30px;
}
.solutions-hero h1 {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00d4ff, #c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.solutions-hero p {
    color: #888;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Segment Tabs --- */
.solutions-segment-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 40px;
}
.solutions-segment-tab {
    padding: 10px 28px;
    border-radius: 25px;
    border: 1px solid #333;
    background: rgba(255,255,255,0.03);
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}
.solutions-segment-tab:hover {
    border-color: #555;
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.solutions-segment-tab.active {
    color: #fff;
    font-weight: 600;
}
.solutions-segment-tab[data-segment="all"].active {
    border-color: #00ff88;
    background: rgba(0,255,136,0.1);
}
.solutions-segment-tab[data-segment="retail"].active {
    border-color: #00ff88;
    background: rgba(0,255,136,0.1);
    color: #00ff88;
}
.solutions-segment-tab[data-segment="business"].active {
    border-color: #00d4ff;
    background: rgba(0,212,255,0.1);
    color: #00d4ff;
}
.solutions-segment-tab[data-segment="institutional"].active {
    border-color: #c9a227;
    background: rgba(201,162,39,0.1);
    color: #c9a227;
}

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

/* --- Solution Card --- */
.solution-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.solution-card:hover {
    border-color: #444;
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}
.solution-card[data-segment="retail"]::before { background: #00ff88; }
.solution-card[data-segment="business"]::before { background: #00d4ff; }
.solution-card[data-segment="institutional"]::before { background: #c9a227; }
.solution-card[data-segment="shared"]::before { background: linear-gradient(90deg, #00ff88, #00d4ff, #c9a227); }

.solution-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.solution-card-name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.solution-card-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
}
.solution-card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.solution-card-badge.retail { background: rgba(0,255,136,0.15); color: #00ff88; }
.solution-card-badge.business { background: rgba(0,212,255,0.15); color: #00d4ff; }
.solution-card-badge.institutional { background: rgba(201,162,39,0.15); color: #c9a227; }
.solution-card-badge.shared { background: rgba(255,255,255,0.1); color: #aaa; }

/* --- Solution Detail Panel --- */
.solution-detail-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.solution-detail-panel {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 20px;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}
.solution-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.solution-detail-close:hover { background: rgba(255,255,255,0.2); }
.solution-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.solution-detail-header .icon { font-size: 40px; }
.solution-detail-header h2 {
    font-size: 26px;
    color: #fff;
    margin: 0;
}
.solution-detail-body {
    min-height: 300px;
}

/* --- Common Module Styles --- */

/* Stat cards row */
.sol-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.sol-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}
.sol-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}
.sol-stat-value.green { color: #00ff88; }
.sol-stat-value.cyan { color: #00d4ff; }
.sol-stat-value.gold { color: #c9a227; }
.sol-stat-value.red { color: #ff4466; }
.sol-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section panel */
.sol-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}
.sol-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Table */
.sol-table {
    width: 100%;
    border-collapse: collapse;
}
.sol-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1a1a1a;
}
.sol-table td {
    padding: 12px;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid #111;
}
.sol-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Buttons */
.sol-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}
.sol-btn-primary {
    background: #00ff88;
    color: #000;
}
.sol-btn-primary:hover { background: #00cc6a; }
.sol-btn-cyan {
    background: #00d4ff;
    color: #000;
}
.sol-btn-cyan:hover { background: #00aad4; }
.sol-btn-gold {
    background: #c9a227;
    color: #000;
}
.sol-btn-gold:hover { background: #a8871f; }
.sol-btn-outline {
    background: transparent;
    color: #aaa;
    border: 1px solid #333;
}
.sol-btn-outline:hover {
    border-color: #555;
    color: #fff;
}
.sol-btn-danger {
    background: rgba(255,68,102,0.15);
    color: #ff4466;
    border: 1px solid rgba(255,68,102,0.3);
}
.sol-btn-danger:hover { background: rgba(255,68,102,0.25); }
.sol-btn-sm {
    padding: 5px 14px;
    font-size: 12px;
}

/* Input / Form */
.sol-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s;
}
.sol-input:focus {
    outline: none;
    border-color: #00ff88;
}
.sol-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.sol-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sol-form-group {
    margin-bottom: 16px;
}
.sol-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tags / Pills */
.sol-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.sol-tag-green { background: rgba(0,255,136,0.15); color: #00ff88; }
.sol-tag-cyan { background: rgba(0,212,255,0.15); color: #00d4ff; }
.sol-tag-gold { background: rgba(201,162,39,0.15); color: #c9a227; }
.sol-tag-red { background: rgba(255,68,102,0.15); color: #ff4466; }
.sol-tag-gray { background: rgba(255,255,255,0.1); color: #888; }

/* Toggle Switch */
.sol-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}
.sol-toggle input { display: none; }
.sol-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #333;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
}
.sol-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.sol-toggle input:checked + .sol-toggle-slider { background: #00ff88; }
.sol-toggle input:checked + .sol-toggle-slider::before { transform: translateX(20px); }

/* Progress Bar */
.sol-progress {
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}
.sol-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.sol-progress-fill.green { background: #00ff88; }
.sol-progress-fill.cyan { background: #00d4ff; }
.sol-progress-fill.gold { background: #c9a227; }

/* Empty State */
.sol-empty {
    text-align: center;
    padding: 40px 20px;
    color: #555;
}
.sol-empty-icon { font-size: 48px; margin-bottom: 12px; }
.sol-empty-text { font-size: 14px; }

/* Tabs within modules */
.sol-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0;
}
.sol-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.sol-tab:hover { color: #aaa; }
.sol-tab.active {
    color: #fff;
    border-bottom-color: #00ff88;
}

/* Code Block */
.sol-code {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #00ff88;
    overflow-x: auto;
    position: relative;
}
.sol-code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #888;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}
.sol-code-copy:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* SVG Gauge */
.sol-gauge-container { text-align: center; }
.sol-gauge-value {
    font-size: 32px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.sol-gauge-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Quick Action Buttons */
.sol-quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.sol-quick-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid #222;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.sol-quick-action:hover {
    background: rgba(255,255,255,0.08);
    border-color: #444;
}
.sol-quick-action .icon { font-size: 20px; }

/* Achievement Badge */
.sol-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s;
}
.sol-badge.unlocked {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
}
.sol-badge.locked {
    background: rgba(255,255,255,0.02);
    border: 1px solid #1a1a1a;
    opacity: 0.4;
    filter: grayscale(1);
}
.sol-badge.unlocked:hover {
    transform: translateY(-2px);
    border-color: #c9a227;
}
.sol-badge-icon { font-size: 36px; margin-bottom: 8px; }
.sol-badge-name { font-size: 12px; font-weight: 600; color: #fff; }
.sol-badge-desc { font-size: 10px; color: #666; margin-top: 4px; }

/* Badges Grid */
.sol-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

/* Chat */
.sol-chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
}
.sol-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.sol-chat-msg {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}
.sol-chat-msg.user { justify-content: flex-end; }
.sol-chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}
.sol-chat-msg.ai .sol-chat-bubble {
    background: rgba(0,212,255,0.1);
    color: #ddd;
    border: 1px solid rgba(0,212,255,0.2);
}
.sol-chat-msg.user .sol-chat-bubble {
    background: rgba(0,255,136,0.1);
    color: #ddd;
    border: 1px solid rgba(0,255,136,0.2);
}
.sol-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #1a1a1a;
    background: rgba(0,0,0,0.3);
}
.sol-chat-input-row input {
    flex: 1;
}

/* Social Feed */
.sol-feed-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #111;
}
.sol-feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sol-feed-body { flex: 1; }
.sol-feed-user { font-weight: 600; color: #fff; font-size: 13px; }
.sol-feed-time { font-size: 11px; color: #555; margin-left: 8px; }
.sol-feed-text { font-size: 13px; color: #aaa; margin-top: 4px; line-height: 1.5; }
.sol-feed-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.sol-feed-action {
    background: none;
    border: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sol-feed-action:hover { color: #aaa; }

/* Donut Chart placeholder */
.sol-donut-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.sol-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sol-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
}
.sol-donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Confetti animation */
@keyframes confetti-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.sol-confetti {
    position: fixed;
    top: 0;
    width: 8px;
    height: 8px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .solutions-hero h1 { font-size: 28px; }
    .solutions-segment-tabs { flex-wrap: wrap; }
    .solutions-grid { grid-template-columns: 1fr; }
    .sol-stats-row { grid-template-columns: 1fr 1fr; }
    .sol-form-row { grid-template-columns: 1fr; }
    .sol-quick-actions { flex-direction: column; }
    .solution-detail-panel { padding: 20px; width: 100%; border-radius: 0; max-height: 100vh; }
}
