 .badge-preview-box {
     text-transform: uppercase;
 }

 .badge-preview {
     width: 80px;
     height: 80px;
     border-radius: 50%;
     background: linear-gradient(135deg, var(--ring-from), var(--ring-to));
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 8px;
     position: absolute;
     left: 10px;
     top: 10px;
     font-weight: 800;
     z-index: 90;
 }

 .badge-preview::before {
     content: "";
     position: absolute;
     inset: 6px;
     border-radius: 50%;
     background: radial-gradient(circle at 50% 40%, var(--inner-from)0%, var(--inner-mid)60%, var(--inner-to)100%);
     z-index: 0;
 }

 .badge-preview span {
     position: relative;
     z-index: 2;
     color: var(--text-color);
     text-align: center;
         text-transform: uppercase;
 }

 .badge-preview .top-text,
 .badge-preview .bottom-text {
     font-size: 8px
 }

 .badge-preview .main-text {
     font-size: 15px;
     line-height: 1
 }

 .page-header {
     display: flex;
     flex-direction: column;
     gap: 4px;
 }

 .page-title {
     font-size: 18px;
     font-weight: 700;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: #0f172a;
 }

 .page-subtitle {
     font-size: 12px;
     color: #64748b;
 }

 /* grid for nice rows */
 .badge-board {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
     gap: 20px;
     justify-items: center;
     align-items: flex-start;
 }

 .badge-wrap {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 4px;
     cursor: pointer;
     transition: transform 0.18s ease, box-shadow 0.18s ease;
 }

 .badge-wrap:hover {
     transform: translateY(-2px);
 }

 .badge-wrap--active .badge {
     box-shadow: 0 0 0 2px rgba(2, 144, 216, 0.7), 0 10px 26px rgba(15, 23, 42, 0.4);
 }

 .badge-label {
     font-size: 10px;
     text-transform: uppercase;
     letter-spacing: 0.12em;
     color: #7b8499;
     text-align: center;
 }

 /* Base round badge using your blue/green gradient */
 .badge {
     width: 78px;
     height: 78px;
     border-radius: 50%;
     background: linear-gradient(135deg, var(--ring-from), var(--ring-to));
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 6px;
     position: relative;
     text-transform: uppercase;
     letter-spacing: 0.08em;
     font-weight: 800;
     overflow: hidden;
     box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 .badge::before {
     content: "";
     position: absolute;
     inset: 7px;
     border-radius: 50%;
     background: radial-gradient(circle at 50% 40%, var(--inner-from) 0%, var(--inner-mid) 60%, var(--inner-to) 100%);
     z-index: 0;
 }

 .badge span {
     position: relative;
     z-index: 1;
     text-align: center;
     padding: 0 4px;
     max-width: 62px;
     word-wrap: break-word;
     color: var(--text-color);
 }

 .badge__top,
 .badge__bottom {
     font-size: 8px;
     line-height:15px;
 }

 .badge__main {
     font-size: 14px;
     line-height:20px;
 }

 .badge__main--wide {
     font-size: 12px;
     letter-spacing: 0.08em;
 }

 .badge__sub {
     font-size: 7px;
     text-transform: none;
     letter-spacing: 0;
 }

 /* slight push up/down to feel circular */
 .badge__top--arc {
     transform: translateY(1px);
 }

 .badge__bottom--arc {
     transform: translateY(-1px);
 }

 /* ===== Animation styles (all keep your gradient) ===== */

 /* 1. Soft breathing/pulse */
 @keyframes breathe {
     0% {
         transform: scale(1);
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
     }

     50% {
         transform: scale(1.05);
         box-shadow: 0 10px 22px rgba(2, 144, 216, 0.35);
     }

     100% {
         transform: scale(1);
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
     }
 }

 .badge--breathe {
     animation: breathe 2s ease-in-out infinite;
 }

 /* 2. Glow for attention */
 @keyframes glow {
     0% {
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
     }

     50% {
         box-shadow: 0 0 22px rgba(2, 144, 216, 0.6);
     }

     100% {
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
     }
 }

 .badge--glow {
     animation: glow 1.8s ease-in-out infinite;
 }

 /* 3. Orbit ring (subtle, modern) */
 .badge--orbit::after {
     content: "";
     position: absolute;
     inset: 2px;
     border-radius: 50%;
     border: 2px solid rgba(2, 144, 216, 0.7);
     border-top-color: rgba(0, 196, 122, 0.9);
     border-bottom-color: rgba(0, 196, 122, 0.4);
     box-sizing: border-box;
     animation: orbit 3.4s linear infinite;
     z-index: 0;
 }

 @keyframes orbit {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 /* 4. Orbit dot around edge */
 .badge--dot::before {
     content: "";
     position: absolute;
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: radial-gradient(circle at 50% 40%, #ffffff 0%, #e9fbf4 60%, #d6f7ee 100%);
     box-shadow: 0 0 10px rgba(0, 196, 122, 0.9);
     top: 3px;
     left: 50%;
     transform: translateX(-50%);
     animation: orbitDot 3.4s linear infinite;
     z-index: 3;
 }

 @keyframes orbitDot {
     0% {
         transform: translate(-50%, 0);
         top: 3px;
         left: 50%;
     }

     25% {
         transform: translate(0, 0);
         top: 50%;
         left: 78%;
     }

     50% {
         transform: translate(0, 0);
         top: 78%;
         left: 50%;
     }

     75% {
         transform: translate(0, 0);
         top: 50%;
         left: 22%;
     }

     100% {
         transform: translate(-50%, 0);
         top: 3px;
         left: 50%;
     }
 }

 /* 5. Sticker pop (for hard-selling) */
 @keyframes stickerPop {
     0% {
         transform: scale(0.95) rotate(-2deg);
     }

     25% {
         transform: scale(1.06) rotate(1deg);
     }

     45% {
         transform: scale(1.0) rotate(-1deg);
     }

     70% {
         transform: scale(1.03) rotate(1deg);
     }

     100% {
         transform: scale(0.95) rotate(-2deg);
     }
 }

 .badge--sticker {
     animation: stickerPop 2.4s ease-in-out infinite;
 }

 /* 6. Gentle float (for info) */
 @keyframes floatY {
     0% {
         transform: translateY(0);
     }

     50% {
         transform: translateY(-4px);
     }

     100% {
         transform: translateY(0);
     }
 }

 .badge--float {
     animation: floatY 3s ease-in-out infinite;
     margin: 0 auto;
 }

 /* 7. Shine sweep */
 .badge--shine::after {
     content: "";
     position: absolute;
     top: -40%;
     left: -40%;
     width: 60%;
     height: 180%;
     background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), transparent 60%);
     transform: translateX(-120%) rotate(20deg);
     animation: shine 3s ease-in-out infinite;
     z-index: 2;
     pointer-events: none;
 }

 @keyframes shine {
     0% {
         transform: translateX(-140%) rotate(20deg);
     }

     40% {
         transform: translateX(140%) rotate(20deg);
     }

     100% {
         transform: translateX(140%) rotate(20deg);
     }
 }

 /* 8. Micro-wiggle for urgency */
 @keyframes wiggle {
     0% {
         transform: rotate(0deg);
     }

     20% {
         transform: rotate(-3deg);
     }

     40% {
         transform: rotate(3deg);
     }

     60% {
         transform: rotate(-2deg);
     }

     80% {
         transform: rotate(2deg);
     }

     100% {
         transform: rotate(0deg);
     }
 }

 .badge--wiggle {
     animation: wiggle 1.4s ease-in-out infinite;
 }

 /* ====== POPUP / EDITOR ====== */
 /* .overlay {
     position: fixed;
     inset: 0;
     background: rgba(15, 23, 42, 0.7);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 999;
 } */

 .overlay.hidden {
     display: none;
 }

 .editor-panel {
     background: #ffffff;
     border-radius: 18px;
     padding: 18px 18px 14px;
     max-width: 640px;
     width: 100%;
     display: grid;
     grid-template-columns: 190px 1fr;
     gap: 16px;
     box-shadow: 0 20px 45px rgba(15, 23, 42, 0.4);
     border: 1px solid #e2e8f0;
 }

 .editor-preview {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 10px;
     padding: 8px 8px 12px;
     border-radius: 14px;
     background: radial-gradient(circle at top, #e0f2fe 0, #ecfeff 45%, #f8fafc 100%);
 }

 .editor-badge {
     transform: scale(1.6);
     transform-origin: center;
 }

 .editor-current {
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 0.1em;
     color: #64748b;
 }

 .editor-fields {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 8px 12px;
     font-size: 12px;
     align-content: flex-start;
 }

 .editor-fields label {
     display: flex;
     flex-direction: column;
     gap: 2px;
     text-transform: uppercase;
     letter-spacing: 0.08em;
     color: #475569;
     font-weight: 600;
 }

 .editor-fields input[type="text"] {
     border-radius: 8px;
     border: 1px solid #cbd5e1;
     padding: 4px 6px;
     font-size: 12px;
 }

 .editor-fields input[type="color"] {
     border-radius: 8px;
     border: 1px solid #cbd5e1;
     padding: 0;
     height: 28px;
 }

 .preset-row {
     grid-column: 1 / -1;
     display: flex;
     flex-wrap: wrap;
     gap: 6px;
     margin: 2px 0 6px;
 }

 .preset-pill {
     border-radius: 999px;
     border: 1px solid #cbd5e1;
     background: #f8fafc;
     padding: 3px 9px;
     font-size: 10px;
     text-transform: uppercase;
     letter-spacing: 0.08em;
     color: #475569;
     cursor: pointer;
 }

 .preset-pill--hot {
     border-color: rgba(248, 113, 113, 0.9);
     color: #b91c1c;
     background: #fef2f2;
 }

 .preset-pill--info {
     border-color: rgba(59, 130, 246, 0.9);
     color: #1d4ed8;
     background: #eff6ff;
 }

 .preset-pill--comfort {
     border-color: rgba(52, 211, 153, 0.9);
     color: #047857;
     background: #ecfdf5;
 }

 .editor-actions {
     margin-top: 8px;
     grid-column: 1 / -1;
     display: flex;
     justify-content: space-between;
     gap: 8px;
     align-items: center;
 }

 .editor-actions-left {
     font-size: 11px;
     color: #94a3b8;
 }

 /* .btn {
     border-radius: 999px;
     border: none;
     padding: 6px 12px;
     font-size: 12px;
     font-weight: 600;
     cursor: pointer;
     white-space: nowrap;
 }

 .btn-primary {
     background: linear-gradient(135deg, #0290d8, #00c47a);
     color: #ffffff;
 } */

 .btn-secondary {
     background: #e2e8f0;
     color: #0f172a;
 }

 .editor-title {
     font-size: 13px;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.12em;
     color: #0f172a;
     margin-bottom: 6px;
 }

 @media (max-width: 640px) {
     body {
         padding: 16px;
     }

     .editor-panel {
         grid-template-columns: 1fr;
         max-width: 94vw;
     }

     .editor-preview {
         order: 1;
     }

     .editor-badge {
         transform: scale(1.3);
     }
 }


