* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Geist", monospace;
    background-color: #ffffff;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 8px 8px;
    font-weight: 500;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 45px 20px 0;
}

.header {
    margin-bottom: 30px;
}

.header-text {
    position: relative;
    color: black;
    top: -22px;
    translate: 10px 0;
    font-family: "Geist", monospace;
    font-size: 13px;
}

.logo-icon {
    width: 15.45px;
    height: 15.45px;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 2px;
}

.main-content {
    width: 100%;
    max-width: 550px;
}

.form-title {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 1);
}

.form-input {
    font-family: "Geist", monospace;
    font-weight: 500;
    font-size: 13px;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 0.5px solid #e0e0e0;
    background-color: white;
    transition: border-color 0.2s;
    border-radius: 5px;
}

.form-input:focus {
    outline: none;
    border-color: #ff5500;
}

.form-select {
    font-family: "Geist", monospace;
    font-weight: 500;
    font-size: 13px;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 0.5px solid #e0e0e0;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='block' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='0' d='m4 8 6 6 6-6'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    transition: border-color 0.2s;
    border-radius: 5px;
}

.form-select:focus {
    outline: none;
    border-color: #ff5500;
}

.token-amount-hint {
    font-family: "SF Pro Display", sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.3);
}

.button-group {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.button {
    font-family: "Geist", monospace;
    font-weight: 500;
    font-size: 15px;
    width: 100%;
    height: 50px;
    border: 1px solid #e0e0e0;
    background-color: rgba(249, 249, 249, 1);
    color: #ff5500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border-radius: 5px;
}

.button:hover {
    background-color: #eeeeee;
    border-color: #d0d0d0;
}

.button-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.note {
    font-family: "SF Pro Display", sans-serif;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    color: rgba(0, 0, 0, 0.3);
}

.modal-overlay {
    font-family: "Geist", monospace;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: brightness(0.96) blur(50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    visibility: hidden;
    overflow: scroll;
}

.modal-overlay.active {
    visibility: visible;
}

.modal-placeholder {
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    text-align: center;
    transform: scale(0.9);
    position: absolute;
    top: 40%;
    translate: 0 -121px;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content {
    background: white;
    border: 0.5px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 7px;
    overflow: scroll;
    width: 100%;
}

.modal-overlay.active .modal-placeholder {
    transition: transform 0.3s ease;
    transform: scale(1);
    opacity: 1;
}

.modal-overlay.active .completed-modal {
    transition: none;
}

.modal-title {
    font-size: 21px;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
    padding-bottom: 14px;
    padding-top: 14px;
}

.modal-title .highlight {
    color: #ff5500;
}

#private-close-button {
    position: absolute;
    top: -34px;
    right: 0px;
    width: 26px;
    height: 26px;
    background: #ff5500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    display: none;
}

#private-close-button:hover {
    background-color: #c0c0c0;
    color: #333;
}

#private-close-button svg {
    width: 10px;
    height: 10px;
}

.token-info {
    font-family: "SF Pro Display", sans-serif;
    color: #000000;
    font-size: 13px;
    font-weight: 400;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 13px;
    border-top: 0.5px solid #e0e0e0;
}

.loading-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 60px;
    margin-top: 15px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid #ff5500;
    border-bottom-color: rgb(255, 85, 0, 0.36);
    border-right-color: rgb(255, 85, 0, 0.36);
    border-top-color: rgb(255, 85, 0, 0.36);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.minting-text {
    margin-top: 15px;
    margin-bottom: 15px;
}

.minting-title {
    font-family: "SF Pro Display", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
}

.minting-hint {
    font-family: "SF Pro Display", sans-serif;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

.minting-subtitle {
    font-family: "SF Pro Display", sans-serif;
    font-size: 12px;
    color: #000000;
    font-style: italic;
}

.minting-subtitle strong {
    color: #ff5500;
    font-weight: 600;
}

.minting-separator {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.5);
    height: 1px;
    margin: 6px 47%;
}

.footer {
    margin-top: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0px 65px;
}

.footer-metadata {
    color: rgba(0, 0, 0, 0.4);
    padding: 20px 0px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 13px;
    font-weight: 400;
    width: 100%;
}

.footer-content {
    height: 54px;
    color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-family: "SF Pro Display", sans-serif;
    font-weight: 400;
    width: 100vw;
    padding: 0 65px;
    background-color: rgba(249, 249, 249, 0.99);
}

.footer-content-section {
    display: flex;
    flex-direction: row;
    gap: 4px;
    color: rgba(124, 124, 124, 1)
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-label {
    margin-bottom: 4px;
    color: #ff5500;
}

.footer-value {
    color: rgba(0, 0, 0, 1);
    font-weight: 400;
    font-size: 12px;
}

.tokens-section {
    text-align: right;
}

.progress-bar {
    height: 7px;
    background-color: #ff5500;
}

.issuance-bar {
    width: 240px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.issuance-fill {
    height: 100%;
    background-color: #ff5500;
    width: 0%;
    border-radius: 2px;
}

.error-message {
    position: relative;
    margin-top: -15px;
    background-color: #FFE8E9;
    border: 0.5px solid #e0e0e0;
    color: black;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 10;
    font-size: 14px;
    white-space: pre-wrap;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.error-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
}

.error-description {
    font-size: 12px;
    font-weight: 400;
    background-color: white;
    border-radius: 5px;
    padding: 5px 15px;
}

.success-tick-css {
    width: 60px;
    height: 60px;
    border: 3px solid #22C55D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    position: relative;
}

.checkmark {
    width: 20px;
    height: 35px;
    border: solid #22C55D;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-top: -10px;
    margin-left: 3px;
}

.explorer-button {
    font-family: "Geist", monospace;
    font-weight: 500;
    background-color: rgba(249, 249, 249, 1);
    border: 0.5px solid #e0e0e0;
    font-size: 13px;
    width: 320px;
    color: black;
    cursor: pointer;
    padding: 12px;
    border-radius: 7px;
    max-width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.explorer-button.public {
    background-color: #ff5500;
    color: white;
    border: none;
}

.continue-text {
    font-family: "Geist", monospace;
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
    margin-top: 85px;
}

#private-continue-text {
    top: 34.5vh;
    visibility: hidden;
    margin: 0;
    background-color: white;
    padding: 12px 6px 12px 6px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    position: absolute;
    translate: 480px 0;
    width: 235px;
}

.warning-text {
    display: none;
    width: 100vw;
    font-family: "SF Pro Display", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
    margin-top: 20px;
}

.download-button {
    font-family: "Geist", monospace;
    display: inline-flex;
    align-items: center;
    vertical-align: text-bottom;
    gap: 2px;
    background-color: rgba(0, 0, 0, 0);
    color: #ff5500;
    border: none;
    cursor: pointer;
}

.download-button.pressed {
    color: #c58af9;
}

.big-download-button {
    font-family: "Geist", monospace;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    padding: 10px;
    padding-left: 15px;
    padding-right: 15px;
    justify-content: center;
    align-items: center;
    background-color: #ff5500;
    color: white;
    border: none;
    border-radius: 3.85px;
    cursor: pointer;
    width: 190px;
}

.download-button.pressed {
    background-color: rgba(255, 85, 0, 0.77);
}

.next-steps {
    display: none;
    margin-top: 15px;
    font-size: 13px;
    color: #000000;
    font-weight: 400;
    text-align: left;
    border: 0.5px solid #e0e0e0;
    padding: 25px;
    padding-top: 15px;
    padding-bottom: 15px;
    max-width: 550px;
    width: 100%;
    max-height: 242px;
    background-color: white;
    border-radius: 7px;
}

.next-steps .highlight {
    font-size: 14px;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.02);
}

.next-steps .step {
    margin-bottom: 11px;
    line-height: 1.1;
}

.next-steps .step strong {
    font-weight: 700;
}

.next-steps .step:last-child {
    margin-bottom: 0;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .wallet-icon-button {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.input-with-icon:focus-within .wallet-icon-button {
    opacity: 1;
    visibility: visible;
}

.form-input {
    padding-right: 40px;
}

.wallet-icon-button {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    border: none;
    background: transparent;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-icon {
    width: 20px;
    height: 20px;
    color: #888;
}

.header-image {
    width: 100%;
    max-width: 550px;
    color: #888;
}

@media (max-width: 768px) {
    .container {
        padding: 16px 16px 0;
    }

    .header {
        margin-bottom: 10px;
    }

    .footer {
        padding: 0px 16px;
    }

    .footer-metadata {
        flex-direction: column;
        gap: 26px;
        text-align: center;
        align-items: center;
    }

    .tokens-section {
        text-align: center;
    }

    .progress-bar {
        margin: 4px auto 0;
    }

    .modal-placeholder {
        top: 25%;
    }
}
