*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #FFFFF7;
    color: #333333;
    line-height: 1.6;
}



.hidden {
  display: none !important;
}

.step1
.step2 {
  transition: opacity 0.2s ease;
}



.steps-wrapper {
    min-height: 580px;          /* adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step.hidden {
    display: none;
}


.step-nav {
    position: sticky;
    bottom: 16px;

    display: flex;
    justify-content: center;
    gap: 14px;

    padding: 12px 0;
    z-index: 10;
}


.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #cfd4d7;
    background: transparent;
    color: #899499;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}


.step-dot.active {
    background: #899499;
    color: #fff;
    border-color: #899499;
    transform: scale(1.05);
}

.step-dot.completed {
    background: #e6e9ea;
    color: #5f6b70;
}



#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}


.verification-text {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.2;
    display: inline-block;
    position: relative;
    top: -13px;
}

.verification-text strong {
    color: #2563eb;
    font-weight: 600;
}


.image-upload-placeholder {
    width: auto;
    flex: 0 0 auto;
}

.image-upload-wrapper .form-group {
    margin-bottom: 0;
}




.verified-label {
    flex-direction: row;
    width: 52px;
    height: 52px;
    cursor: pointer;
    white-space: nowrap;
}



.verify-badge {
    width: auto;
    height: auto;
    max-width: 52px;
    max-height: 52px;
    display: inline-block;
    flex-shrink: 0;
}


.badge-rays {
    fill: #d1d5db;
    transform-origin: 50% 50%;
    transform-box: fill-box;
    transition: fill 0.25s ease;
}

.badge-core {
    fill: #d1d5db;
    transition: fill 0.25s ease;
}

.badge-check {
    fill: none;
    stroke: #fff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.verification-box {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

#verifiedCheck:checked + .verified-label .badge-rays,
#verifiedCheck:checked + .verified-label .badge-core {
    fill: #1DA1F2;
}


#verifiedCheck:checked + .verified-label .badge-rays {
    animation: sunspin 60s linear infinite;
}

.verification-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}


@keyframes sunspin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}




.image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}



header {
    background-color: #1a1a1a;
    padding: 1.25rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.625rem;
    color: #f0f0f0;
}

header p {
    font-size: 1rem;
    color: #b0b0b0;
}

.builder-section {
    padding: 3.5rem 5%;
    max-width: 1300px; 
    margin: 0 auto;    
}

.builder-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6.25rem; 
    justify-content: space-between;
}

.builder-left {
    flex: 1 1 21.875rem;
    max-width: 36rem;
}

.builder-left h5 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.3125rem;
    font-weight: bold;
}


.boldmark-checkbox {
    display: none;
}

.boldmark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    font-weight: 900;
    font-family: Arial, sans-serif;
    color: #333;

    border: 1px solid #999;
    border-radius: 4px;
    cursor: pointer;

    user-select: none;
    transition: all 0.2s ease;
}

.boldmark-checkbox:checked + .boldmark-icon {
    background: black;
    color: white;
    border-color: black;
}




.advanced-options {
  margin-top: 5px;
  margin-bottom: 20px;
}

.advanced-btn {
  background: none;
  border: none;
  color: black;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
  text-align: left;
  font-size: 1.1rem;
}


.advanced-content {
  margin-top: 8px;
  padding: 10px;
  border-left: 3px solid #007bff;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.btn-audio {
  width: 100%;
  padding: 8px;
  border: 2px dotted #aaa;
  background-color: #f8f8f8;
  color: #555;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.btn-audio:hover {
  background-color: #f1f1f1;
  border-color: #888;
  color: #000;
}

.autoplay-check {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.autoplay-check label {
  font-size: 0.9rem;
  color: #333;
}



.input-prefix-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 1.6rem;
    max-width: 100%;
}

.input-prefix {
    padding: 0.1rem 0.2rem;
    color: #333;           
    background-color: #f5f5f5;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.input-prefix-wrapper .form-control {
    border: none;
    border-radius: 0;
    flex: 1;
    padding: 0.5rem 0.75rem;
    color: #000;
    background-color: transparent;
    font-size: 0.95rem;
}

.input-prefix-wrapper .form-control::placeholder {
    color: #888;
}

.input-prefix-wrapper .form-control:focus {
    outline: none;
    background-color: transparent;
}


.delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.25rem;
    color: #cc0000;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #ff3333;
}


.image-placeholder {
    width: 150px;
    height: 150px; 
    border: 2px dotted #bbb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background 0.3s;
}

.image-placeholder:hover {
    background-color: #f1f1f1;
    color: #333;
}

.social-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100%;
}


.background-upload-placeholder {
    width: 65px;
    height: 120px;
    font-size: 0.9rem;
    padding: 3px;
}


.social-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    max-width: 100%;
}




.social-input-row input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    outline: none;
}


.social-platform {
    background-color: #f0f0f0;
    color: #333;
    flex: 1 1 30%;  
    min-width: 100px;
}


.social-link {
    background-color: #fff;
    color: #0066cc;  
    flex: 2 1 35%;   
    min-width: 150px;
}



.social-input-row input:focus {
    border-color: #888;
    background-color: #fff;
}




.fat-input {
    border-width: 2px !important;
    border-color: black !important;
}








.form-control {
    width: 100%;
    padding: 0.625rem;
    margin-bottom: 0rem;
    border-radius: 0.3125rem;
    border: 0.0625rem solid #555; 
    background-color: white;
    color: #fff;
}

.form-control::placeholder {
    color: #888;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.9375rem; 
}

.form-check input[type="checkbox"] {
    margin-right: 0.625rem; /* 10px -> 0.625rem */
}

.btn {
    display: block;
    width: 50%;
    padding: 0.75rem; /* 12px -> 0.75rem */
    margin-bottom: 0.625rem; /* 10px -> 0.625rem */
    border: none;
    border-radius: 0.375rem; /* 6px -> 0.375rem */
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #4581A9;
    color: #fff;
    margin-bottom: 1.6rem;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-custom {
    background-color: #3e5856;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-custom:hover {
    background-color: #e65b50;
}

.btn-telegram {
    background-color: #fff;
    color: black;
}

.btn-telegram:hover {
    background-color: #006699;
}





.form-group {
    margin-bottom: 1.6rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.4);
}





.builder-right {
    flex: 1 1 18.75rem; /* 300px -> 18.75rem */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.preview-phone {
    width: 100%;
    max-width: 20rem;          /* increase width */
    aspect-ratio: 1 / 2;
    border: 0.0625rem solid #555; /* 1px -> 0.0625rem */
    border-radius: 1.25rem; /* 20px -> 1.25rem */
    overflow: hidden;
    scrollbar-width: none;
}

.preview-phone iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    scrollbar-width: none;
}

.support-section {
    text-align: center;
    margin-top: 1.5rem;
}

.support-section h4 {
    margin-bottom: 0.625rem; /* 10px -> 0.625rem */
    color: white;
}

footer.footer {
    text-align: center;
    padding: 1.25rem 0; /* 20px -> 1.25rem */
    background-color: #1a1a1a;
    margin-top: 2.5rem; /* 40px -> 2.5rem */
    color: #b0b0b0;
}

.support-section .btn-telegram {
    width: auto;
    padding: 0.75rem 2rem;
    display: inline-block;
    margin: 0.5rem;
}






.dashboard {
    position: absolute;
    top: 40px;
    right: 20px; /* distance from right edge */
}

.title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.title-row h1 {
    grid-column: 2;
    justify-self: center;
}

.stats-pill {
  display: inline-block;
  padding: 8px 14px;
  background-color: #ffffff;
  color: #333333;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  grid-column: 3;
  justify-self: end;
  margin-right: 20px;
}



body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: #000;
}

body.dark-mode header h1 {
    color: #ffffff;
}

body.dark-mode header p {
    color: #aaaaaa;
}

body.dark-mode .input-prefix-wrapper {
    background-color: #1e1e1e;
    border: 1px solid #444;
}

body.dark-mode .input-prefix {
    background-color: #2a2a2a;
    color: #ccc;
}

body.dark-mode .input-prefix-wrapper .form-control {
    color: #fff;
}

body.dark-mode .input-prefix-wrapper .form-control::placeholder {
    color: #888;
}

body.dark-mode .verification-text {
   color: #e0e0e0;
}

body.dark-mode .social-platform {
    background-color: #2a2a2a;
    color: #ccc;
}

body.dark-mode .social-link {
    background-color: #1e1e1e;
    color: #4da6ff;
}

body.dark-mode .social-input-row input {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
}

body.dark-mode .form-control {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #fff;
}

body.dark-mode .form-control:focus {
    border-color: #3399ff;
    box-shadow: 0 0 3px rgba(51, 153, 255, 0.5);
}

body.dark-mode .preview-phone {
    border: 1px solid #444;
    background-color: #000;
}

body.dark-mode .support-section h4 {
    color: #fff;
}

body.dark-mode footer.footer {
    background-color: #000;
    color: #888;
}


body.dark-mode .image-placeholder {
    background-color: #1e1e1e;
    border-color: #555;
    color: #aaa;
}

body.dark-mode .image-placeholder:hover {
    background-color: #2a2a2a;
    color: #fff;
}



body.dark-mode .advanced-btn {
    color: #e0e0e0;          /* light text */
}

body.dark-mode .advanced-btn:hover {
    text-decoration: underline;
}

body.dark-mode .advanced-content {
    background-color: #1e1e1e;   /* dark background */
    border-left-color: #4aa3ff;  /* softer blue for dark mode */
    color: #e0e0e0;
}

body.dark-mode .btn-audio {
    background-color: #2a2a2a;
    border-color: #666;          /* soft gray dotted border */
    color: #ddd;
}

body.dark-mode .btn-audio:hover {
    background-color: #333;
    border-color: #888;
    color: #fff;
}

body.dark-mode .autoplay-check label {
    color: #e0e0e0;
}


.core-text {
  margin-top: 80px;
  max-width: 640px;
  padding-top: 28px;

  border-top: 1px solid #e5e7eb;

  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
}

.core-text h3 {
  margin-bottom: 16px;

  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1f2937;
}

.core-text p {
  margin-bottom: 20px;
  color: #374151;
}


.core-text strong {
  font-weight: 600;
}


.core-cta {
  margin-top: 40px;
  padding-top: 24px;

  border-top: 1px dashed #e5e7eb;
}

.core-cta label {
  font-size: 0.85rem;
  color: #6b7280;
}


@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(29, 161, 242, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(29, 161, 242, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(29, 161, 242, 0.3);
  }
}



@media (max-width: 48rem) { /* 768px -> 48rem */
    .builder-wrapper {
        align-items: center;
	gap: 0; 
   }

    header h1{
	font-size: 2.3rem !important;
    }


    .builder-left, .builder-right {
        max-width: 100%;
    }

    .preview-phone {
        width: 100%; 
        height: auto;
    }


    .dashboard-btn {
	width: 32px;
	height: 16px;
	font-size: 0.3rem;
	background-color: #fff;   
	border: 2px solid black; 
    }

    .dashboard {
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .image-upload-wrapper {
        gap: 0px;
    }

    .verification-box {
        margin-left: clamp(-52px, calc(-52px + (100vw - 320px) * 0.12), -20px);
    }

    .core-text {
        padding: 25px;
    }

  .stats-pill {
    padding: 5px;
    font-size: 1.4rem;
  }

    .title-row {
        grid-template-columns: auto 1fr; /* 2 columns: H1 + pill */
    }

    .title-row h1 {
        grid-column: 1;          /* move H1 to first column */
        justify-self: start;      /* align left */
        margin-left: 35px;       /* give some breathing room */
    }

.stats-pill {
    grid-column: 2;
    justify-self: end;
    margin-right: 20px;

    font-size: 1rem;
    padding: 8px 14px;              /* slightly bigger for touch */
    
    
    font-weight: 600;
    animation: pulse 2s infinite;
}


  .step3 {
    height: 330px !important;
  }

}
