.vpn-performance-card{display:block;padding:12px!important}
.vpn-performance-summary{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;width:100%;min-height:60px!important;padding:8px 9px!important;border:1px solid rgba(72,191,255,.28)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(49,190,255,.10),rgba(102,93,255,.07))!important;color:var(--text,#eaf2ff)!important;box-shadow:none!important;text-align:left}
.vpn-performance-summary-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(145deg,#2fb4ff,#6b61ff);box-shadow:0 5px 12px rgba(61,133,255,.20)}
.vpn-performance-summary-icon[data-profile="eco"]{background:linear-gradient(145deg,#45d89d,#1da97b)}
.vpn-performance-summary-icon[data-profile="performance"]{background:linear-gradient(145deg,#ff8f58,#ef4776)}
.vpn-summary-svg{display:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.vpn-performance-summary-icon[data-profile="eco"] .vpn-summary-eco,.vpn-performance-summary-icon[data-profile="balanced"] .vpn-summary-balanced,.vpn-performance-summary-icon[data-profile="performance"] .vpn-summary-performance{display:block}
.vpn-performance-summary-copy{display:grid;min-width:0;gap:2px}
.vpn-performance-summary-copy small{color:#43c8ff;font-size:.66rem;font-weight:900;letter-spacing:.04em}
.vpn-performance-summary-copy b{overflow:hidden;font-size:.86rem;line-height:1.18;text-overflow:ellipsis;white-space:nowrap}
.vpn-performance-summary-side{display:grid;grid-template-columns:auto 18px;align-items:center;gap:5px;padding-left:5px}
.vpn-performance-summary-side small{color:var(--muted,#8290aa);font-size:.65rem;font-weight:800}
.vpn-performance-summary-side i{display:block;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .18s ease}
.vpn-performance-summary[aria-expanded="true"] .vpn-performance-summary-side i{transform:rotate(225deg) translate(-1px,-1px)}
.vpn-performance-body{display:grid;gap:12px;margin-top:12px}
.vpn-performance-body[hidden]{display:none}
.vpn-global-protocol{display:grid;grid-column:1/-1;gap:8px;min-width:0;padding:10px;border:1px solid rgba(72,191,255,.27);border-radius:14px;background:linear-gradient(135deg,rgba(49,190,255,.09),rgba(102,93,255,.07))}
.vpn-global-protocol-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
.vpn-global-protocol-head>span{display:grid;min-width:0;gap:2px}
.vpn-global-protocol-head b{font-size:.82rem;line-height:1.15}
.vpn-global-protocol-head small{color:var(--muted,#8290aa);font-size:.66rem;line-height:1.2}
.vpn-global-protocol-head>strong{flex:0 0 auto;border:1px solid rgba(72,191,255,.34);border-radius:999px;padding:4px 8px;color:#65d2ff;background:rgba(49,190,255,.10);font-size:.64rem;font-weight:900;line-height:1.1}
.vpn-global-protocol-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:4px;border:1px solid rgba(91,170,255,.20);border-radius:13px;background:rgba(76,112,176,.08)}
.vpn-global-protocol-selector button{display:grid!important;grid-template-columns:auto;align-content:center;justify-items:start;gap:2px;min-width:0;min-height:48px!important;padding:8px 11px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:var(--muted,#8290aa)!important;box-shadow:none!important;text-align:left}
.vpn-global-protocol-selector button b{font-size:.86rem;line-height:1.1}
.vpn-global-protocol-selector button small{overflow:hidden;max-width:100%;font-size:.64rem;font-weight:800;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.vpn-global-protocol-selector button[aria-pressed="true"]{border-color:rgba(69,198,255,.42)!important;background:linear-gradient(135deg,rgba(51,190,255,.19),rgba(103,91,255,.16))!important;color:var(--text,#eaf2ff)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)!important}
.vpn-global-protocol-selector button[data-vpn-protocol="hysteria2"][aria-pressed="true"]{border-color:rgba(109,130,255,.48)!important;background:linear-gradient(135deg,rgba(71,202,255,.17),rgba(111,87,255,.23))!important}
.vpn-hysteria-variant{display:grid;gap:9px;padding:10px;border:1px solid rgba(112,129,255,.28);border-radius:14px;background:linear-gradient(145deg,rgba(59,190,255,.075),rgba(111,84,255,.085))}
.vpn-hysteria-variant[hidden]{display:none}
.vpn-hysteria-variant-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;min-width:0}
.vpn-hysteria-variant-head>span{display:grid;min-width:0;gap:2px}
.vpn-hysteria-variant-head small{color:#62cbff;font-size:.61rem;font-weight:900;letter-spacing:.055em}
.vpn-hysteria-variant-head b{font-size:.91rem;line-height:1.18}
.vpn-hysteria-variant-head>strong{flex:0 0 auto;border:1px solid rgba(107,137,255,.34);border-radius:999px;padding:4px 8px;color:#8bb8ff;background:rgba(95,105,255,.11);font-size:.63rem;font-weight:900}
.vpn-hysteria-variant-selected{display:flex;align-items:center;gap:11px;min-width:0;padding:10px 11px;border:1px solid rgba(112,151,255,.26);border-radius:13px;background:linear-gradient(135deg,rgba(55,189,255,.10),rgba(105,82,255,.10))}
.vpn-hysteria-variant-selected>span:last-child{display:grid;min-width:0;gap:2px}
.vpn-hysteria-variant-selected b{font-size:.92rem;line-height:1.18}
.vpn-hysteria-variant-selected small{color:var(--muted,#8290aa);font-size:.7rem;font-weight:700;line-height:1.3}
.vpn-hysteria-variant-selected-icon{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(145deg,#39bdf7,#5f65ff);box-shadow:0 5px 12px rgba(61,111,255,.22)}
.vpn-hysteria-variant-selected[data-variant="salamander"] .vpn-hysteria-variant-selected-icon{background:linear-gradient(145deg,#7767ff,#b04ee9)}
.vpn-hysteria-variant-selected[data-variant="port-hopping"] .vpn-hysteria-variant-selected-icon{background:linear-gradient(145deg,#f3994d,#ee557f)}
.vpn-hysteria-variant-svg{display:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vpn-hysteria-variant-selected[data-variant="standard"] .vpn-hysteria-variant-svg-standard,.vpn-hysteria-variant-selected[data-variant="salamander"] .vpn-hysteria-variant-svg-salamander,.vpn-hysteria-variant-selected[data-variant="port-hopping"] .vpn-hysteria-variant-svg-port-hopping{display:block}
.vpn-hysteria-variant-control{position:relative;padding-top:1px}
.vpn-hysteria-variant-control input[type="range"]{display:block;width:calc(100% - 28px);height:34px;margin:0 14px;cursor:grab;accent-color:#6a77ff;touch-action:pan-x}
.vpn-hysteria-variant-control input[type="range"]:active{cursor:grabbing}
.vpn-hysteria-variant-control input[type="range"]:disabled{cursor:not-allowed;opacity:.48}
.vpn-hysteria-variant-control input[type="range"]::-webkit-slider-runnable-track{height:6px;border:1px solid rgba(99,167,255,.34);border-radius:99px;background:linear-gradient(90deg,rgba(54,196,255,.58),rgba(118,91,255,.60) 50%,rgba(242,102,126,.56))}
.vpn-hysteria-variant-control input[type="range"]::-webkit-slider-thumb{width:28px;height:28px;margin-top:-12px;border:3px solid #fff;border-radius:50%;background:#6c77ff;box-shadow:0 3px 10px rgba(17,67,135,.38);-webkit-appearance:none}
.vpn-hysteria-variant-control input[type="range"]::-moz-range-track{height:6px;border:1px solid rgba(99,167,255,.34);border-radius:99px;background:linear-gradient(90deg,rgba(54,196,255,.58),rgba(118,91,255,.60) 50%,rgba(242,102,126,.56))}
.vpn-hysteria-variant-control input[type="range"]::-moz-range-thumb{width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#6c77ff;box-shadow:0 3px 10px rgba(17,67,135,.38)}
.vpn-hysteria-variant-marks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.vpn-hysteria-variant-marks button{display:grid!important;grid-template-columns:19px minmax(0,1fr);align-items:center;min-width:0;min-height:43px!important;padding:6px 4px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--text,#eaf2ff)!important;box-shadow:none!important;text-align:left}
.vpn-hysteria-variant-marks button[data-hysteria-variant="salamander"]{grid-template-columns:19px max-content;justify-content:center}
.vpn-hysteria-variant-marks button[data-selected="true"]{background:rgba(80,152,255,.13)!important}
.vpn-hysteria-variant-marks button:disabled{opacity:.48}
.vpn-hysteria-variant-marks svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vpn-hysteria-variant-marks button[data-hysteria-variant="standard"] svg{color:#3fc7f6}
.vpn-hysteria-variant-marks button[data-hysteria-variant="salamander"] svg{color:#9b79ff}
.vpn-hysteria-variant-marks button[data-hysteria-variant="port-hopping"] svg{color:#ef6b87}
.vpn-hysteria-variant-marks b{overflow:hidden;font-size:.7rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.vpn-hysteria-variant-message{margin:0;color:var(--muted,#8290aa);font-size:.7rem;line-height:1.35}
.vpn-hysteria-variant-save{width:100%;min-height:42px!important;padding:8px 12px!important;border-radius:11px!important;font-size:.83rem!important;font-weight:850}
.vpn-hysteria-variant-message:empty{display:none}
.vpn-hysteria-variant-message[data-tone="success"]{color:#42cc89}
.vpn-hysteria-variant-message[data-tone="warning"]{color:#e4b84f}
.vpn-hysteria-variant-message[data-tone="error"]{color:#ef7188}
#vpnPerformanceSettings{display:grid;gap:12px;min-width:0}
.vpn-performance-context{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vpn-performance-protocol,.vpn-performance-state{border:1px solid rgba(86,201,255,.34);border-radius:999px;padding:5px 9px;font-size:.75rem;font-weight:850;line-height:1.1}
.vpn-performance-protocol{color:#4bc9ff;background:rgba(50,171,255,.10);letter-spacing:.035em}
.vpn-performance-state{color:var(--text,#eaf2ff)}
.vpn-performance-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.vpn-performance-heading h2{margin:0;font-size:1.12rem}
.vpn-performance-heading p,.vpn-performance-message{margin:0;color:var(--muted,#8290aa);font-size:.78rem;line-height:1.35}
.vpn-performance-selected{display:flex;align-items:center;gap:11px;min-width:0;padding:10px 11px;border:1px solid rgba(127,155,205,.22);border-radius:13px;background:rgba(110,145,210,.07)}
.vpn-performance-selected>span:last-child{display:grid;min-width:0;gap:1px}
.vpn-performance-selected b{font-size:.96rem;line-height:1.2}
.vpn-performance-selected small{display:block;overflow:visible;color:var(--muted,#8290aa);font-size:.78rem;line-height:1.32;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.vpn-performance-selected-icon{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(145deg,#2fb4ff,#6b61ff);box-shadow:0 5px 12px rgba(61,133,255,.20)}
.vpn-selected-svg{display:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.vpn-performance-selected[data-profile="eco"] .vpn-selected-eco,.vpn-performance-selected[data-profile="balanced"] .vpn-selected-balanced,.vpn-performance-selected[data-profile="performance"] .vpn-selected-performance{display:block}
.vpn-performance-selected[data-profile="eco"] .vpn-performance-selected-icon{background:linear-gradient(145deg,#45d89d,#1da97b)}
.vpn-performance-selected[data-profile="performance"] .vpn-performance-selected-icon{background:linear-gradient(145deg,#ff8f58,#ef4776)}
.vpn-performance-control{position:relative;padding-top:1px}
.vpn-performance-control input[type="range"]{display:block;width:calc(100% - 28px);height:34px;margin:0 14px;cursor:grab;accent-color:#3ec7ff;touch-action:pan-x}
.vpn-performance-control input[type="range"]:active{cursor:grabbing}
.vpn-performance-control input[type="range"]:disabled{cursor:not-allowed;opacity:.48}
.vpn-performance-control input[type="range"]::-webkit-slider-runnable-track{height:6px;border:1px solid rgba(94,178,255,.32);border-radius:99px;background:linear-gradient(90deg,rgba(60,213,156,.48),rgba(68,184,255,.52) 50%,rgba(245,91,116,.48))}
.vpn-performance-control input[type="range"]::-webkit-slider-thumb{width:28px;height:28px;margin-top:-12px;border:3px solid #fff;border-radius:50%;background:#45c8ff;box-shadow:0 3px 10px rgba(17,67,135,.38);-webkit-appearance:none}
.vpn-performance-control input[type="range"]::-moz-range-track{height:6px;border:1px solid rgba(94,178,255,.32);border-radius:99px;background:linear-gradient(90deg,rgba(60,213,156,.48),rgba(68,184,255,.52) 50%,rgba(245,91,116,.48))}
.vpn-performance-control input[type="range"]::-moz-range-thumb{width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#45c8ff;box-shadow:0 3px 10px rgba(17,67,135,.38)}
.vpn-performance-marks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.vpn-performance-marks button{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;min-width:0;min-height:42px;padding:6px 4px;border:0!important;border-radius:10px;background:transparent!important;color:var(--text,#eaf2ff);box-shadow:none!important;text-align:left}
.vpn-performance-marks button[hidden]{display:none!important}
.vpn-performance-marks button:first-child{text-align:left}
.vpn-performance-marks button:last-child{text-align:left}
.vpn-performance-marks button[data-profile="balanced"]{grid-template-columns:20px max-content;justify-content:center}
.vpn-performance-marks button[data-selected="true"]{background:rgba(59,183,255,.10)!important}
.vpn-performance-marks button:disabled{opacity:.48}
.vpn-profile-icon{width:18px;height:18px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vpn-profile-icon-leaf{color:#39c995}.vpn-profile-icon-balance{color:#45bfff}.vpn-profile-icon-bolt{color:#f06b83;fill:rgba(240,107,131,.10)}
.vpn-performance-marks b{overflow:hidden;font-size:.76rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.vpn-performance-save{width:100%;min-height:44px!important;padding:9px 13px!important;border-radius:12px!important;font-size:.88rem!important;font-weight:850}
.vpn-performance-faq-toggle{display:grid!important;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;width:100%;min-height:48px!important;padding:7px 10px!important;border:1px solid rgba(72,191,255,.24)!important;border-radius:12px!important;background:rgba(59,183,255,.055)!important;color:var(--text,#eaf2ff)!important;box-shadow:none!important;text-align:left}
.vpn-performance-faq-icon{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(72,191,255,.34);border-radius:9px;color:#43c8ff;background:rgba(59,183,255,.10);font-size:.86rem;font-weight:950}
.vpn-performance-faq-copy{display:grid;min-width:0;gap:1px}
.vpn-performance-faq-copy b{font-size:.8rem;line-height:1.15}
.vpn-performance-faq-copy small{overflow:hidden;color:var(--muted,#8290aa);font-size:.68rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.vpn-performance-faq-toggle>i{display:block;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .18s ease}
.vpn-performance-faq-toggle[aria-expanded="true"]>i{transform:rotate(225deg) translate(-1px,-1px)}
.vpn-performance-faq-panel{display:grid;gap:8px;padding:9px;border:1px solid rgba(72,191,255,.28);border-radius:13px;background:rgba(59,183,255,.06)}
.vpn-performance-faq-panel[hidden]{display:none}
.vpn-performance-faq-head{display:flex;align-items:center;gap:7px;min-width:0}
.vpn-performance-faq-head span{flex:0 0 auto;border:1px solid rgba(72,191,255,.32);border-radius:999px;padding:3px 7px;color:#45c8ff;background:rgba(59,183,255,.10);font-size:.62rem;font-weight:900;letter-spacing:.025em}
.vpn-performance-faq-head b{min-width:0;font-size:.84rem;line-height:1.2}
.vpn-performance-update-steps{display:grid;gap:7px}
.vpn-performance-update-steps img{display:block;width:100%;height:auto;border:1px solid rgba(127,155,205,.18);border-radius:10px;background:#fff}
.vpn-performance-message{min-height:.95em}
.vpn-performance-message[data-tone="success"]{color:#42cc89}
.vpn-performance-message[data-tone="warning"]{color:#e4b84f}
.vpn-performance-message[data-tone="error"]{color:#ef7188}
.vpn-performance-message:empty{display:none}
.stats-vpn-profile{display:flex;align-items:center;gap:7px;min-width:0;min-height:44px;margin:0;padding:5px 8px;border:1px solid rgba(72,191,255,.26);border-radius:11px;background:linear-gradient(135deg,rgba(49,190,255,.10),rgba(102,93,255,.08))}
.quality-check-action>.stats-vpn-profile{flex:1 1 158px}
.quality-check-action>.quality-check-result{flex:1 1 100%}
.stats-vpn-profile-icon{display:grid;flex:0 0 28px;width:28px;height:28px;place-items:center;border-radius:8px;color:#fff;background:linear-gradient(145deg,#2fb4ff,#6b61ff);box-shadow:0 5px 12px rgba(61,133,255,.18)}
.stats-vpn-profile[data-profile="eco"] .stats-vpn-profile-icon{background:linear-gradient(145deg,#45d89d,#1da97b)}
.stats-vpn-profile[data-profile="performance"] .stats-vpn-profile-icon{background:linear-gradient(145deg,#ff8f58,#ef4776)}
.stats-vpn-profile-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.stats-vpn-profile-copy{display:grid;min-width:0;gap:2px;line-height:1.1}
.stats-vpn-profile-copy small{overflow:hidden;color:var(--muted,#8290aa);font-size:.56rem;font-weight:800;letter-spacing:.03em;text-overflow:ellipsis;white-space:nowrap}
.stats-vpn-profile-copy b{overflow:hidden;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:380px){.vpn-global-protocol-head>strong{display:none}.vpn-global-protocol-selector button{padding-inline:8px!important}.vpn-hysteria-variant-head>strong{display:none}.vpn-hysteria-variant-marks b{font-size:.62rem}.vpn-hysteria-variant-selected small{font-size:.66rem}.vpn-performance-summary{grid-template-columns:38px minmax(0,1fr) auto}.vpn-performance-summary-icon{width:34px;height:34px}.vpn-performance-summary-side small{display:none}.vpn-performance-summary-side{grid-template-columns:18px}.vpn-performance-marks b{font-size:.7rem}.vpn-performance-heading p{display:none}.quality-check-action{gap:7px}.quality-check-action button{min-width:142px;padding-inline:10px}.quality-check-action>.stats-vpn-profile{flex-basis:145px;padding-inline:6px}}
@media(prefers-reduced-motion:reduce){.vpn-performance-control input[type="range"]{scroll-behavior:auto}}

/* One settings group and one action for transport and connection mode. */
.vpn-performance-options{display:grid;gap:12px;min-width:0;padding:10px;border:1px solid rgba(112,129,255,.28);border-radius:14px;background:linear-gradient(145deg,rgba(59,190,255,.075),rgba(111,84,255,.085))}
.vpn-performance-options .vpn-hysteria-variant{padding:0 0 12px;border:0;border-bottom:1px solid rgba(112,151,255,.22);border-radius:0;background:none}
.vpn-performance-options .vpn-performance-heading{align-items:flex-start;flex-wrap:wrap;gap:4px}
.vpn-performance-options .vpn-performance-heading h2{font-size:.96rem}
.vpn-performance-options .vpn-performance-heading p{font-size:.7rem}
.vpn-performance-options .vpn-performance-marks{grid-template-columns:1.26fr 1fr 1.1fr}
.vpn-performance-options .vpn-performance-marks button{grid-template-columns:16px minmax(0,1fr);gap:2px;padding-inline:0!important}
.vpn-performance-options .vpn-performance-marks b{font-size:.7rem}
.vpn-performance-options .vpn-profile-icon{width:15px;height:15px}
.vpn-performance-save:disabled{opacity:.5;cursor:default}
