/* Risk & Acceptance Page Styles */

/* Hero Section */
.risk-hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.risk-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(247, 147, 30, 0.03) 100%);
    z-index: 0;
}

.risk-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.risk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
    border: 1px solid #ff6b35;
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
}

.risk-hero-badge i {
    font-size: 16px;
}

.risk-hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.risk-hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 32px;
}

.risk-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.trust-badge i {
    color: #ff6b35;
    font-size: 18px;
}

/* Risk Dashboard Visualization */
.risk-dashboard {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Risk Metrics */
.risk-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid;
}

.metric-card.safe {
    border-left-color: #059669;
}

.metric-card.review {
    border-left-color: #f59e0b;
}

.metric-card.blocked {
    border-left-color: #dc2626;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-card.safe .metric-icon {
    background: #d1fae5;
    color: #065f46;
}

.metric-card.review .metric-icon {
    background: #fef3c7;
    color: #92400e;
}

.metric-card.blocked .metric-icon {
    background: #fee2e2;
    color: #991b1b;
}

.metric-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.metric-percentage {
    font-size: 12px;
    color: #666;
}

/* Transaction Example */
.transaction-example {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
}

.risk-score {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.risk-score.low {
    background: #d1fae5;
    color: #065f46;
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-success {
    color: #059669;
    font-size: 12px;
}

.transaction-status {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.transaction-status.approved {
    background: #d1fae5;
    color: #065f46;
}

/* Features Section */
.risk-features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #ff6b35;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
}

.gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.gradient-red {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

.gradient-teal {
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #f8f9fa;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.workflow-step {
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #ff6b35;
    transition: all 0.3s ease;
}

.workflow-step:hover .step-icon {
    border-color: #ff6b35;
    transform: scale(1.05);
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.step-connector {
    position: absolute;
    top: 20px;
    left: 50%;
    width: calc(100% + 40px);
    height: 2px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    z-index: -1;
}

.workflow-step:last-child .step-connector {
    display: none;
}

/* Risk Signals Section */
.risk-signals {
    padding: 100px 0;
    background: white;
}

.signals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.signals-text h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.signals-text > p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 40px 0;
}

.signals-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.signal-category {
    display: flex;
    gap: 16px;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: #fff5f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 20px;
    flex-shrink: 0;
}

.category-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.category-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-info li {
    font-size: 14px;
    color: #666;
    padding-left: 16px;
    position: relative;
}

.category-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: 700;
}

/* Radar Chart */
.signals-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-chart {
    width: 400px;
    height: 400px;
    position: relative;
}

.radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.risk-score-display {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.risk-score-display .score {
    font-size: 48px;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.risk-score-display .label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

.ring-1 {
    width: 150px;
    height: 150px;
}

.ring-2 {
    width: 250px;
    height: 250px;
}

.ring-3 {
    width: 350px;
    height: 350px;
}

.radar-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, -50%);
}

.point-dot {
    width: 16px;
    height: 16px;
    background: #059669;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.2);
    animation: dotPulse 2s infinite;
}

.radar-point:nth-child(even) .point-dot {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.point-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Custom Rules Section */
.custom-rules {
    padding: 100px 0;
    background: #f8f9fa;
}

.rules-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rules-builder {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.builder-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.add-rule-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-rule-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.rule-item.active {
    border-color: #ff6b35;
    background: #fff5f2;
}

.rule-condition,
.rule-action {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.condition-badge,
.action-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.condition-badge {
    background: #dbeafe;
    color: #1e40af;
}

.action-badge {
    background: #d1fae5;
    color: #065f46;
}

.rule-and {
    padding-left: 34px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.rules-text h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.rules-text > p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 32px 0;
}

.rules-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.rules-feature {
    display: flex;
    gap: 16px;
}

.rules-feature i {
    width: 40px;
    height: 40px;
    background: #fff5f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 18px;
    flex-shrink: 0;
}

.rules-feature h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.rules-feature p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Stats Section */
.risk-stats {
    padding: 100px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #ff6b35;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.stat-description {
    font-size: 13px;
    color: #999;
}

/* CTA Section */
.risk-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.cta-content p {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: #1a1a1a;
    border: none;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .risk-hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .risk-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 968px) {
    .risk-hero-title {
        font-size: 42px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workflow {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-connector {
        display: none;
    }
    
    .signals-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .signals-categories {
        grid-template-columns: 1fr;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .risk-hero {
        padding: 100px 0 60px;
    }
    
    .risk-hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .risk-hero-description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .risk-hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    
    .risk-hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .trust-badge {
        width: 100%;
    }
    
    .risk-dashboard {
        padding: 24px;
    }
    
    .risk-metrics {
        gap: 10px;
    }
    
    .metric-card {
        padding: 12px;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    .transaction-example {
        padding: 16px;
    }
    
    .risk-features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .how-it-works {
        padding: 60px 0;
    }
    
    .workflow {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }
    
    .step-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    
    .risk-signals {
        padding: 60px 0;
    }
    
    .signals-text h2 {
        font-size: 28px;
    }
    
    .signals-text > p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .signals-categories {
        gap: 20px;
    }
    
    .signal-category {
        gap: 12px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .category-info h4 {
        font-size: 15px;
    }
    
    .category-info li {
        font-size: 13px;
    }
    
    .radar-chart {
        width: 280px;
        height: 280px;
    }
    
    .ring-1 {
        width: 90px;
        height: 90px;
    }
    
    .ring-2 {
        width: 160px;
        height: 160px;
    }
    
    .ring-3 {
        width: 240px;
        height: 240px;
    }
    
    .risk-score-display {
        width: 100px;
        height: 100px;
    }
    
    .risk-score-display .score {
        font-size: 40px;
    }
    
    .point-dot {
        width: 12px;
        height: 12px;
    }
    
    .point-label {
        font-size: 11px;
    }
    
    .custom-rules {
        padding: 60px 0;
    }
    
    .rules-builder {
        padding: 24px;
    }
    
    .builder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .add-rule-btn {
        width: 100%;
        justify-content: center;
    }
    
    .rule-item {
        padding: 16px;
    }
    
    .rules-text h2 {
        font-size: 28px;
    }
    
    .rules-text > p {
        font-size: 16px;
    }
    
    .rules-features {
        gap: 20px;
    }
    
    .risk-stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .stat-card .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .risk-cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .risk-hero {
        padding: 80px 0 40px;
    }
    
    .risk-hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .risk-hero-title {
        font-size: 28px;
    }
    
    .risk-hero-description {
        font-size: 15px;
    }
    
    .risk-dashboard {
        padding: 20px;
    }
    
    .dashboard-header h3 {
        font-size: 16px;
    }
    
    .live-indicator {
        font-size: 12px;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
    }
    
    .metric-info {
        align-items: center;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .step-content h3 {
        font-size: 16px;
    }
    
    .step-content p {
        font-size: 13px;
    }
    
    .signals-text h2 {
        font-size: 24px;
    }
    
    .radar-chart {
        width: 260px;
        height: 260px;
    }
    
    .ring-1 {
        width: 80px;
        height: 80px;
    }
    
    .ring-2 {
        width: 140px;
        height: 140px;
    }
    
    .ring-3 {
        width: 220px;
        height: 220px;
    }
    
    .risk-score-display {
        width: 80px;
        height: 80px;
    }
    
    .risk-score-display .score {
        font-size: 32px;
    }
    
    .risk-score-display .label {
        font-size: 10px;
    }
    
    .rules-builder {
        padding: 20px;
    }
    
    .rule-condition,
    .rule-action {
        flex-wrap: wrap;
    }
    
    .rules-text h2 {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .stat-description {
        font-size: 12px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
}

