.pw-wheel *, .pw-wheel *::before, .pw-wheel *::after { box-sizing: border-box; }
.pw-wheel { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #333; }
.pw-wheel .container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.pw-wheel .calculator-container { background: white; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid rgba(0,0,0,0.05); }
.pw-wheel .calculator-header { background: linear-gradient(135deg, var(--color-primary, #D4A636), #b8972f); color: white; padding: 30px; text-align: center; }
.pw-wheel .calculator-header h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; color: white; }
.pw-wheel .calculator-header .subtext { opacity: .95; margin: 0; }

.pw-wheel .calculator-content { padding: 40px; }
.pw-wheel .input-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.pw-wheel .wheel-group { background: #f8f9fa; padding: 30px; border-radius: 15px; border: 2px solid #e9ecef; transition: all 0.3s ease; }
.pw-wheel .wheel-group:hover { border-color: var(--color-primary, #D4A636); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.pw-wheel .wheel-group .group-title { color: var(--color-primary, #D4A636); margin-bottom: 20px; font-size: 1.1rem; text-align: center; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary, #D4A636); font-weight: 700; }

.pw-wheel .input-group { margin-bottom: 20px; }
.pw-wheel .input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
.pw-wheel .input-row { display: flex; align-items: center; gap: 10px; }
.pw-wheel .input-group input { flex: 1; padding: 12px 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; transition: border-color 0.3s ease; background: #fff; color: #333; }
.pw-wheel .input-group input:focus { outline: none; border-color: var(--color-primary, #D4A636); box-shadow: 0 0 0 3px rgba(212,166,54,0.1); }
.pw-wheel .unit { font-weight: bold; color: #666; min-width: 30px; }

.pw-wheel .calculate-btn { width: 100%; padding: 15px 30px; background: linear-gradient(135deg, var(--color-primary, #D4A636), #b8972f); color: white; border: none; border-radius: 10px; font-size: 18px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; margin-bottom: 30px; }
.pw-wheel .calculate-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(212,166,54,0.3); }

.pw-wheel .results { background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 30px; border-radius: 15px; border-left: 5px solid var(--color-primary, #D4A636); display: none; }
.pw-wheel .results.show { display: block; animation: pw-slideIn 0.5s ease; }
@keyframes pw-slideIn { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

.pw-wheel .results .title { color: var(--color-primary, #D4A636); margin-bottom: 20px; font-size: 1.2em; font-weight: 700; }

.pw-wheel .visual-comparison { background: white; border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 2px solid #e9ecef; }
.pw-wheel .visual-comparison .subheading { color: var(--color-primary, #D4A636); text-align: center; margin-bottom: 25px; font-size: 1.1em; font-weight: 700; }

.pw-wheel .wheel-profile { background: #f8f9fa; border-radius: 10px; padding: 20px; margin-bottom: 20px; border-left: 4px solid var(--color-primary, #D4A636); position: relative; }
.pw-wheel .wheel-profile.current { border-left-color: #dc3545; }
.pw-wheel .wheel-profile.new { border-left-color: var(--color-primary, #D4A636); }
.pw-wheel .profile-header { font-weight: bold; margin-bottom: 15px; color: #333; }

.pw-wheel .wheel-diagram { display: flex; align-items: center; justify-content: center; min-height: 80px; position: relative; overflow: visible; }
.pw-wheel .orientation-label { position: absolute; bottom: -20px; font-size: 11px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.pw-wheel .orientation-label.inside { left: 10px; }
.pw-wheel .orientation-label.outside { right: 10px; }

.pw-wheel .centerline { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(to bottom, #ff4444 0px, #ff4444 8px, transparent 8px, transparent 16px); transform: translateX(-50%); z-index: 10; }
.pw-wheel .centerline::before { content: 'Hub Mounting Surface'; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: #ff4444; color: white; padding: 5px 12px; border-radius: 15px; font-size: 11px; font-weight: bold; white-space: nowrap; box-shadow: 0 2px 8px rgba(255,68,68,0.3); }

.pw-wheel .wheel-visual { height: 50px; position: relative; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.pw-wheel .wheel-cross-section { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.pw-wheel .rim-outer-left { position: absolute; left: 0; top: 0; bottom: 0; width: 15px; background: linear-gradient(to right, #FFC107, #FFB300); border-left: 3px solid #FFA000; border-top: 3px solid #FFA000; border-bottom: 3px solid #FFA000; border-radius: 8px 0 0 8px; }
.pw-wheel .rim-outer-right { position: absolute; right: 0; top: 0; bottom: 0; width: 15px; background: linear-gradient(to left, #FFC107, #FFB300); border-right: 3px solid #FFA000; border-top: 3px solid #FFA000; border-bottom: 3px solid #FFA000; border-radius: 0 8px 8px 0; }
.pw-wheel .rim-barrel { position: absolute; left: 15px; right: 15px; top: 8px; bottom: 8px; background: linear-gradient(90deg, #616161 0%, #757575 25%, #9E9E9E 50%, #757575 75%, #616161 100%); border-top: 2px solid #424242; border-bottom: 2px solid #424242; }
.pw-wheel .wheel-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 11px; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); white-space: nowrap; font-weight: bold; z-index: 20; }
.pw-wheel .wheel-specs { text-align: center; margin-top: 10px; font-size: 14px; color: #666; }

.pw-wheel .poke-display { background: white; border: 3px solid var(--color-primary, #D4A636); border-radius: 15px; padding: 20px; text-align: center; margin-top: 20px; }
.pw-wheel .poke-value { font-size: 1.8em; font-weight: bold; color: var(--color-primary, #D4A636); margin-bottom: 10px; }

.pw-wheel .result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.pw-wheel .result-item { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-left: 4px solid var(--color-primary, #D4A636); }
.pw-wheel .result-item .label { color: #333; margin-bottom: 10px; font-size: 1.1em; font-weight: 600; }
.pw-wheel .result-value { font-size: 1.3em; font-weight: bold; color: var(--color-primary, #D4A636); }
.pw-wheel .positive { color: #27ae60; }
.pw-wheel .negative { color: #f44336; }
.pw-wheel .neutral { color: #666; }

.pw-wheel .share-bar { display: flex; align-items: center; gap: 10px; background: #f0f7f0; border: 2px solid #27ae60; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; animation: pw-slideIn 0.3s ease; }
.pw-wheel .share-bar__label { font-weight: 600; color: #333; white-space: nowrap; font-size: 0.9em; }
.pw-wheel .share-bar__input { flex: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; background: #fff; color: #333; }
.pw-wheel .share-bar__btn { padding: 8px 18px; background: #27ae60; color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.pw-wheel .share-bar__btn:hover { background: #219a52; }

.pw-wheel .pw-info-section { background: white; margin-top: 30px; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.pw-wheel .pw-info-section h2 { color: var(--color-primary, #D4A636); margin: 0 0 16px; font-size: 1.4rem; border-bottom: 2px solid var(--color-primary, #D4A636); padding-bottom: 10px; font-weight: 700; }
.pw-wheel .pw-info-section h2:not(:first-of-type) { margin-top: 40px; }
.pw-wheel .pw-info-section p { line-height: 1.7; margin-bottom: 10px; color: #444; }
.pw-wheel .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; margin-bottom: 10px; }
.pw-wheel .info-card { background: #f8f9fa; padding: 25px; border-radius: 10px; border-left: 4px solid var(--color-primary, #D4A636); }
.pw-wheel .info-card h3 { color: #333; margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; }
.pw-wheel .info-card p { margin: 0; line-height: 1.65; }

.pw-wheel .pw-how-to { padding-left: 20px; margin: 16px 0 10px; }
.pw-wheel .pw-how-to li { line-height: 1.7; margin-bottom: 10px; color: #444; padding-left: 6px; }

.pw-wheel .pw-wheel-footer { text-align: center; color: #000; margin-top: 40px; padding: 20px; opacity: 0.8; }

@media (max-width: 768px) {
    .pw-wheel .input-section { grid-template-columns: 1fr; gap: 20px; }
    .pw-wheel .calculator-content { padding: 20px; }
    .pw-wheel .pw-info-section { padding: 24px; }
    .pw-wheel .share-bar { flex-wrap: wrap; }
    .pw-wheel .share-bar__label { width: 100%; }
    .pw-wheel .share-bar__input { min-width: 0; }
}
