/* =========================================
   ROYALE HIGH HALO VALUE CALCULATOR
   Modern Dark Theme - Clean & User-Friendly
   ========================================= */

.rhv-wrapper {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    line-height: 1.6;
}

.rhv-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rhv-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.rhv-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.rhv-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rhv-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.rhv-hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.rhv-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rhv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rhv-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

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

.rhv-btn-outline {
    background: transparent;
    border: 2px solid #a855f7;
    color: #a855f7;
}

.rhv-btn-outline:hover {
    background: #a855f7;
    color: #fff;
}

.rhv-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.rhv-hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rhv-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
}

.rhv-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #a855f7;
}

.rhv-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

/* ===== SEARCH ===== */
.rhv-search-section {
    margin-bottom: 2rem;
}

.rhv-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.rhv-search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.rhv-search-box input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid #475569;
    border-radius: 1rem;
    background: #0f172a;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.rhv-search-box input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.rhv-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.rhv-search-dropdown.show {
    display: block;
}

.rhv-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #334155;
    transition: background 0.2s;
}

.rhv-search-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

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

.rhv-search-item-icon {
    font-size: 1.5rem;
}

.rhv-search-item-name {
    flex: 1;
    font-weight: 600;
}

.rhv-search-item-val {
    color: #06b6d4;
    font-weight: 700;
}

/* ===== CALCULATOR ===== */
.rhv-calculator-section {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.rhv-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rhv-section-title i {
    color: #a855f7;
}

.rhv-section-desc {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.rhv-calc-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rhv-calc-panel {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 1rem;
    padding: 1.25rem;
}

.rhv-panel-you {
    border-color: rgba(67, 233, 123, 0.4);
}

.rhv-panel-their {
    border-color: rgba(240, 147, 251, 0.4);
}

.rhv-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
}

.rhv-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rhv-panel-you .rhv-panel-header h3 i {
    color: #43e97b;
}

.rhv-panel-their .rhv-panel-header h3 i {
    color: #f093fb;
}

.rhv-panel-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: #06b6d4;
}

.rhv-panel-total small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.rhv-panel-items {
    min-height: 120px;
}

.rhv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.rhv-empty-icon {
    font-size: 2rem;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.rhv-empty p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.rhv-btn-add {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Trade Item */
.rhv-trade-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.rhv-trade-item-icon {
    font-size: 1.25rem;
}

.rhv-trade-item-info {
    flex: 1;
}

.rhv-trade-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.rhv-trade-item-val {
    font-weight: 700;
    color: #06b6d4;
    font-size: 0.85rem;
}

.rhv-trade-item-remove {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.rhv-trade-item-remove:hover {
    background: #ef4444;
    color: #fff;
}

/* Verdict Panel */
.rhv-verdict-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 1rem;
    min-width: 100px;
    align-self: stretch;
}

.rhv-verdict-panel.win {
    border-color: #43e97b;
    background: rgba(67, 233, 123, 0.05);
}

.rhv-verdict-panel.fair {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
}

.rhv-verdict-panel.lose {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.rhv-verdict-icon {
    font-size: 1.75rem;
}

.rhv-verdict-text {
    font-size: 1rem;
    font-weight: 800;
}

.rhv-verdict-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
}

/* Result Details */
.rhv-result-details {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.rhv-result-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rhv-result-item {
    text-align: center;
    padding: 0.75rem;
    background: #0f172a;
    border-radius: 0.5rem;
}

.rhv-result-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.rhv-result-val {
    font-size: 1.25rem;
    font-weight: 800;
}

.rhv-result-diff {
    color: #fbbf24;
}

.rhv-result-explain {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.rhv-result-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rhv-btn-action {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-copy-trade {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.btn-copy-trade:hover {
    background: #a855f7;
    color: #fff;
}

.btn-share-trade {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.btn-share-trade:hover {
    background: #06b6d4;
    color: #fff;
}

.btn-swap {
    background: #334155;
    color: #fff;
}

.btn-swap:hover {
    background: #475569;
}

.btn-clear {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-clear:hover {
    background: #ef4444;
    color: #fff;
}

/* ===== VALUE LIST ===== */
.rhv-values-section {
    margin-bottom: 2rem;
}

.rhv-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rhv-filter {
    padding: 0.5rem 1rem;
    border: 1px solid #475569;
    border-radius: 2rem;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.rhv-filter:hover {
    border-color: #a855f7;
    color: #fff;
}

.rhv-filter.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

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

.rhv-halo-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.rhv-halo-card:hover {
    border-color: #a855f7;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.rhv-halo-card.legendary {
    border-left: 3px solid #fbbf24;
}

.rhv-halo-card.rare {
    border-left: 3px solid #a855f7;
}

.rhv-halo-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.rhv-halo-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.rhv-halo-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #06b6d4;
    margin-bottom: 0.5rem;
}

.rhv-halo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rhv-halo-demand {
    display: flex;
    gap: 2px;
}

.rhv-demand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.rhv-demand-dot.filled {
    background: #fbbf24;
}

.rhv-halo-trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.rhv-halo-trend.rising { color: #43e97b; }
.rhv-halo-trend.falling { color: #ef4444; }
.rhv-halo-trend.stable { color: #94a3b8; }

.rhv-halo-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.6rem;
    font-weight: 700;
}

.rhv-halo-badge.trending {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.rhv-halo-badge.new {
    background: rgba(67, 233, 123, 0.15);
    color: #43e97b;
}

/* ===== STEPS ===== */
.rhv-steps-section {
    margin-bottom: 2rem;
}

.rhv-steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rhv-step {
    text-align: center;
    max-width: 150px;
}

.rhv-step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 0.75rem;
}

.rhv-step h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rhv-step p {
    font-size: 0.8rem;
    color: #94a3b8;
}

.rhv-step-arrow {
    font-size: 1.5rem;
    color: #a855f7;
}

/* ===== FEATURES ===== */
.rhv-features-section {
    margin-bottom: 2rem;
}

.rhv-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.rhv-feature {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.rhv-feature:hover {
    border-color: #a855f7;
    transform: translateY(-4px);
}

.rhv-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.rhv-feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rhv-feature p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ===== FAQ ===== */
.rhv-faq-section {
    margin-bottom: 2rem;
}

.rhv-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rhv-faq-item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    overflow: hidden;
}

.rhv-faq-q {
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rhv-faq-q i {
    transition: transform 0.3s;
}

.rhv-faq-item.active .rhv-faq-q i {
    transform: rotate(180deg);
}

.rhv-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.rhv-faq-item.active .rhv-faq-a {
    max-height: 200px;
    padding: 0 1.25rem 1rem;
}

/* ===== CTA ===== */
.rhv-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}

.rhv-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.rhv-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.rhv-cta .rhv-btn-primary {
    background: #fff;
    color: #764ba2;
}

.rhv-cta .rhv-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== DISCLAIMER ===== */
.rhv-disclaimer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ===== TOAST ===== */
.rhv-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
}

.rhv-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.rhv-toast.success {
    border-color: #43e97b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .rhv-calc-layout {
        grid-template-columns: 1fr;
    }
    
    .rhv-verdict-panel {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .rhv-result-row {
        grid-template-columns: 1fr;
    }
    
    .rhv-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rhv-steps-grid {
        flex-direction: column;
    }
    
    .rhv-step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .rhv-hero-title {
        font-size: 1.75rem;
    }
    
    .rhv-hero-stats {
        gap: 0.75rem;
    }
    
    .rhv-stat-card {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .rhv-features-grid {
        grid-template-columns: 1fr;
    }
    
    .rhv-halo-grid {
        grid-template-columns: 1fr;
    }
    
    .rhv-calculator-section {
        padding: 1.25rem;
    }
    
    .rhv-result-actions {
        flex-direction: column;
    }
    
    .rhv-btn-action {
        width: 100%;
        justify-content: center;
    }
}
