.resource-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 28px 50px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.stat-summary-card {
    background: linear-gradient(135deg, #0f121b, #0a0e16);
    border: 1px solid #2a2f3d;
    border-radius: 20px;
    padding: 18px 20px;
    transition: all 0.2s;
}
.stat-summary-card:hover {
    border-color: #c9a063;
    transform: translateY(-2px);
}
.stat-summary-card .stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.stat-summary-card .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8a94a8;
    letter-spacing: 1px;
}
.stat-summary-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c9a063;
    line-height: 1.2;
}
.stat-summary-card .stat-sub {
    font-size: 0.65rem;
    color: #5a6070;
    margin-top: 4px;
}

.resource-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.info-card {
    background: #0f121b;
    border: 1px solid #2a2f3d;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s;
}
.info-card:hover {
    border-color: #c9a063;
}
.card-title {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #2a2f3d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #c9a063;
}
.card-body {
    padding: 20px;
}

.resource-table {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.resource-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.resource-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.resource-input {
    width: 110px;
    background: #1a1f2a;
    border: 1px solid #2a2f3d;
    border-radius: 10px;
    padding: 8px 10px;
    color: #fff;
    text-align: right;
    font-family: monospace;
}
.resource-input:focus {
    outline: none;
    border-color: #c9a063;
}
.quick-btn {
    background: rgba(201, 160, 99, 0.15);
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    color: #c9a063;
    font-size: 0.65rem;
    cursor: pointer;
}
.quick-btn:hover {
    background: #c9a063;
    color: #000;
}

.role-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.role-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2f3d;
    border-radius: 30px;
    padding: 8px 16px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}
.role-btn.active {
    background: #c9a063;
    border-color: #c9a063;
    color: #000;
}
.role-btn:hover:not(.active) {
    border-color: #c9a063;
}

.requirements {
    background: #0a0e16;
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}
.req-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.req-row:last-child {
    border-bottom: none;
}
.req-label {
    font-size: 0.85rem;
}
.req-value {
    font-weight: 700;
    font-family: monospace;
}
.req-value.have {
    color: #2ecc71;
}
.req-value.need {
    color: #ff5e6b;
}
.req-value.total {
    color: #c9a063;
}
.gap-warning {
    color: #ff5e6b;
    font-size: 0.7rem;
    margin-top: 8px;
    text-align: right;
}

.pull-planner {
    background: #0a0e16;
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}
.pull-stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pity-slider {
    width: 100%;
    margin: 16px 0;
}
.pity-value {
    text-align: center;
    font-size: 0.8rem;
    color: #c9a063;
}
.pull-progress {
    margin: 16px 0;
}
.progress-bar {
    background: #1e232e;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}
.progress-fill {
    background: #c9a063;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.progress-bg {
    background: #1e232e;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-fill-custom {
    background: #c9a063;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.btn-primary {
    background: #c9a063;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    transition: all 0.2s;
}
.btn-outline {
    background: transparent;
    border: 1px solid #c9a063;
    padding: 6px 14px;
    border-radius: 30px;
    color: #c9a063;
    cursor: pointer;
    font-size: 0.7rem;
}
.btn-primary:hover, .btn-outline:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.footer-links a {
    color: #9aa2b5;
    text-decoration: none;
}
.footer-links a:hover {
    color: #c9a063;
}

@media (max-width: 1100px) {
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .resource-two-col {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    .resource-page {
        padding: 16px;
    }
}
