@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.rscm-ring-tool {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f172a 0%, #155e75 42%, #7c3aed 100%);
  color: #f8fafc;
  font-family: Arial, Helvetica, sans-serif;
}

.rscm-ring-tool *,
.rscm-ring-tool *::before,
.rscm-ring-tool *::after {
  box-sizing: border-box;
}

.rscm-ring-tool .rscm-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.rscm-ring-tool .rscm-header {
  text-align: center;
}

.rscm-ring-tool h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: #ffffff;
  font-weight: 800;
}

.rscm-ring-tool .rscm-subtitle {
  margin: 12px auto 0;
  max-width: 760px;
  color: rgba(248, 250, 252, 0.86);
  line-height: 1.5;
}

.rscm-ring-tool .rscm-grid {
  display: grid;
  width: 100%;
  align-items: stretch;
}

.rscm-ring-tool .rscm-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rscm-ring-tool .rscm-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 78px rgba(2, 6, 23, 0.34);
  border-color: rgba(255, 255, 255, 0.34);
}

.rscm-ring-tool .rscm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rscm-ring-tool h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: 0;
}

.rscm-ring-tool .rscm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.36);
  font-size: 0.82rem;
  font-weight: 700;
}

.rscm-ring-tool .rscm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rscm-ring-tool .rscm-stat {
  min-width: 0;
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rscm-ring-tool .rscm-stat span {
  display: block;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.76rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.rscm-ring-tool .rscm-stat strong {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rscm-ring-tool .rscm-fields {
  display: grid;
  gap: 12px;
}

.rscm-ring-tool .rscm-field {
  min-width: 0;
}

.rscm-ring-tool label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.92);
}

.rscm-ring-tool .rscm-control {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.rscm-ring-tool .rscm-control:focus {
  border-color: #67e8f9;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.24), 0 0 26px rgba(103, 232, 249, 0.26);
  background: #ffffff;
}

.rscm-ring-tool .rscm-actions {
  display: grid;
  gap: 12px;
}

.rscm-ring-tool .rscm-btn,
.rscm-ring-tool .rscm-copy {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
}

.rscm-ring-tool .rscm-btn svg,
.rscm-ring-tool .rscm-copy svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.rscm-ring-tool .rscm-btn:focus-visible,
.rscm-ring-tool .rscm-copy:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.rscm-ring-tool .rscm-btn-primary {
  color: #08111f;
  background: linear-gradient(135deg, #67e8f9, #a7f3d0);
  box-shadow: 0 14px 34px rgba(45, 212, 191, 0.28);
}

.rscm-ring-tool .rscm-btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.rscm-ring-tool .rscm-btn:hover,
.rscm-ring-tool .rscm-copy:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(45, 212, 191, 0.28);
}

.rscm-ring-tool .rscm-copy {
  width: auto;
  min-width: 150px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.rscm-ring-tool .rscm-copy:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.rscm-ring-tool .rscm-status {
  min-height: 24px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rscm-ring-tool .rscm-status.rscm-error {
  color: #fecaca;
}

.rscm-ring-tool .rscm-status.rscm-success {
  color: #bbf7d0;
}

.rscm-ring-tool .rscm-result-panel {
  min-height: 0;
}

.rscm-ring-tool .rscm-preview {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.rscm-ring-tool .rscm-preview.rscm-updated {
  animation: rscmFadeIn 220ms ease;
}

.rscm-ring-tool .rscm-empty {
  text-align: center;
  padding: 16px;
  color: rgba(248, 250, 252, 0.86);
}

.rscm-ring-tool .rscm-empty svg {
  width: 54px;
  height: 54px;
  fill: rgba(167, 243, 208, 0.9);
  margin-bottom: 12px;
}

.rscm-ring-tool .rscm-empty p {
  margin: 0;
  line-height: 1.45;
}

.rscm-ring-tool .rscm-result-main {
  display: grid;
  gap: 12px;
  width: 100%;
}

.rscm-ring-tool .rscm-result-highlight {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.2), rgba(167, 243, 208, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.rscm-ring-tool .rscm-result-highlight span {
  display: block;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.86);
  margin-bottom: 6px;
}

.rscm-ring-tool .rscm-result-highlight strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.rscm-ring-tool .rscm-result-list {
  display: grid;
  gap: 8px;
}

.rscm-ring-tool .rscm-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.rscm-ring-tool .rscm-result-row span,
.rscm-ring-tool .rscm-note {
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.88rem;
  line-height: 1.35;
}

.rscm-ring-tool .rscm-result-row strong {
  color: #ffffff;
  text-align: right;
  overflow-wrap: anywhere;
}

.rscm-ring-tool .rscm-note {
  margin: 0;
}

@keyframes rscmFadeIn {
  from { opacity: 0.72; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 320px) and (max-width: 374px) {
  .rscm-ring-tool { padding: 24px 10px; border-radius: 0 !important; }
  .rscm-ring-tool .rscm-container { width: 100%; padding: 0; }
  .rscm-ring-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .rscm-ring-tool .rscm-subtitle { font-size: 0.9rem; }
  .rscm-ring-tool .rscm-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .rscm-ring-tool .rscm-panel { padding: 16px; gap: 16px; border-radius: 18px; }
  .rscm-ring-tool .rscm-panel-head { flex-direction: column; align-items: stretch; }
  .rscm-ring-tool .rscm-stats { grid-template-columns: 1fr; gap: 8px; }
  .rscm-ring-tool .rscm-control { min-height: 46px; font-size: 0.95rem; }
  .rscm-ring-tool .rscm-actions { grid-template-columns: 1fr; }
  .rscm-ring-tool .rscm-btn, .rscm-ring-tool .rscm-copy { min-height: 46px; font-size: 0.9rem; }
  .rscm-ring-tool .rscm-copy { width: 100%; }
  .rscm-ring-tool .rscm-preview { min-height: 260px; padding: 12px; }
  .rscm-ring-tool .rscm-result-highlight strong { font-size: 1.15rem; }
}

@media (min-width: 375px) and (max-width: 429px) {
  .rscm-ring-tool { padding: 28px 12px; border-radius: 0 !important; }
  .rscm-ring-tool .rscm-container { width: 100%; padding: 0; }
  .rscm-ring-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .rscm-ring-tool .rscm-subtitle { font-size: 0.94rem; }
  .rscm-ring-tool .rscm-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .rscm-ring-tool .rscm-panel { padding: 18px; gap: 16px; border-radius: 20px; }
  .rscm-ring-tool .rscm-panel-head { flex-direction: column; align-items: stretch; }
  .rscm-ring-tool .rscm-stats { grid-template-columns: 1fr; gap: 8px; }
  .rscm-ring-tool .rscm-control { min-height: 48px; font-size: 1rem; }
  .rscm-ring-tool .rscm-actions { grid-template-columns: 1fr; }
  .rscm-ring-tool .rscm-btn, .rscm-ring-tool .rscm-copy { min-height: 48px; }
  .rscm-ring-tool .rscm-copy { width: 100%; }
  .rscm-ring-tool .rscm-preview { min-height: 270px; padding: 12px; }
  .rscm-ring-tool .rscm-result-highlight strong { font-size: 1.2rem; }
}

@media (min-width: 430px) and (max-width: 767px) {
  .rscm-ring-tool { padding: 32px 16px; border-radius: 0 !important; }
  .rscm-ring-tool .rscm-container { width: 100%; padding: 0; }
  .rscm-ring-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .rscm-ring-tool .rscm-subtitle { font-size: 1rem; }
  .rscm-ring-tool .rscm-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .rscm-ring-tool .rscm-panel { padding: 20px; gap: 16px; border-radius: 22px; }
  .rscm-ring-tool .rscm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rscm-ring-tool .rscm-stat { padding: 10px; }
  .rscm-ring-tool .rscm-control { min-height: 48px; }
  .rscm-ring-tool .rscm-actions { grid-template-columns: 1fr 1fr; }
  .rscm-ring-tool .rscm-btn, .rscm-ring-tool .rscm-copy { min-height: 48px; }
  .rscm-ring-tool .rscm-copy { width: auto; }
  .rscm-ring-tool .rscm-preview { min-height: 280px; padding: 14px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rscm-ring-tool { padding: 40px 24px; border-radius: 0 !important; }
  .rscm-ring-tool .rscm-container { width: 100%; padding: 0 8px; }
  .rscm-ring-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .rscm-ring-tool .rscm-subtitle { font-size: 1.05rem; }
  .rscm-ring-tool .rscm-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .rscm-ring-tool .rscm-panel { padding: 24px; gap: 20px; }
  .rscm-ring-tool .rscm-fields { grid-template-columns: 1.2fr 1fr 0.7fr; }
  .rscm-ring-tool .rscm-actions { grid-template-columns: 1fr 1fr; }
  .rscm-ring-tool .rscm-control, .rscm-ring-tool .rscm-btn, .rscm-ring-tool .rscm-copy { min-height: 50px; }
  .rscm-ring-tool .rscm-preview { min-height: 300px; padding: 16px; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .rscm-ring-tool { padding: 44px 24px; border-radius: 0 !important; }
  .rscm-ring-tool .rscm-container { width: 100%; padding: 0; }
  .rscm-ring-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .rscm-ring-tool .rscm-subtitle { font-size: 1.06rem; }
  .rscm-ring-tool .rscm-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 24px; margin-top: 32px; align-items: stretch; }
  .rscm-ring-tool .rscm-panel { padding: 24px; gap: 20px; height: 100%; }
  .rscm-ring-tool .rscm-fields { grid-template-columns: 1fr; }
  .rscm-ring-tool .rscm-actions { grid-template-columns: 1fr 1fr; }
  .rscm-ring-tool .rscm-control, .rscm-ring-tool .rscm-btn, .rscm-ring-tool .rscm-copy { min-height: 48px; }
  .rscm-ring-tool .rscm-preview { padding: 16px; }
}

@media (min-width: 1200px) {
  .rscm-ring-tool { padding: 48px 32px; border-radius: 0 !important; }
  .rscm-ring-tool .rscm-container { width: 100%; padding: 0; }
  .rscm-ring-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .rscm-ring-tool .rscm-subtitle { font-size: 1.08rem; }
  .rscm-ring-tool .rscm-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; margin-top: 32px; align-items: stretch; }
  .rscm-ring-tool .rscm-panel { padding: 24px; gap: 20px; height: 100%; }
  .rscm-ring-tool .rscm-fields { grid-template-columns: 1fr; }
  .rscm-ring-tool .rscm-actions { grid-template-columns: 1fr 1fr; }
  .rscm-ring-tool .rscm-control, .rscm-ring-tool .rscm-btn, .rscm-ring-tool .rscm-copy { min-height: 50px; }
  .rscm-ring-tool .rscm-preview { padding: 16px; }
}