/* Font faces */
@font-face {
    font-family: Gilroy;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(Gilroy-Regular.woff2) format("woff2");
}

@font-face {
    font-family: Gilroy;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(Gilroy-Medium.woff2) format("woff2");
}

@font-face {
    font-family: Gilroy;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(Gilroy-Semibold.woff2) format("woff2");
}

@font-face {
    font-family: Gilroy;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(Gilroy-Bold.woff2) format("woff2");
}

/* Global reset */
* {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile touch improvements */
button, 
.hero-button,
.navigation-button,
.participate-item_button,
.calculator-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    min-height: 44px;
}

/* Prevent zoom on inputs on iOS */
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    font-size: 16px;
}

@media (max-width: 480px) {
    /* Ensure buttons are easy to tap */
    .hero-button,
    .navigation-button,
    .participate-item_button {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    /* Better spacing for mobile */
    .hero-buttons {
        gap: 20px;
    }
    
    .participate-items {
        gap: 15px;
    }
}

img {
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

html {
    min-height: 100%;
    min-width: 100%;
}

body {
    background: #fdfdfd;
    line-height: 1.4;
    font-size: 16px;
    font-family: Gilroy, -apple-system, Arial, sans-serif;
    color: rgb(var(--secondary-color));
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

span {
    white-space: nowrap;
}

input, textarea, button, select {
    font-family: Gilroy, -apple-system, Arial, sans-serif;
}

a {
    text-decoration: none;
    color: unset;
}

/* App */
#app {
    position: relative;
}

/* Container */
.container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
}

/* Section title */
.section-title {
    text-align: center;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
}

.section-title h2 span {
    color: rgb(var(--primary-color));
}

.section-title svg {
    position: absolute;
    right: 50%;
    bottom: 50%;
    transform: translate(50%, 50%);
    pointer-events: none;
    z-index: -1;
    color: rgb(var(--primary-color));
}

/* Background */
.background {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background: url(bg.png) top no-repeat;
    background-size: 100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.background:after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: 424px;
    height: 424px;
    border-radius: 424px;
    background: rgba(var(--primary-color), .15);
    filter: blur(100px);
    left: -180px;
    top: -180px;
}

.background_page {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background-size: cover !important;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Navigation */
.navigation {
    padding: 20px 0;
}

.navigation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

.navigation-logo {
    height: var(--navigation-logo-height);
}

.navigation-nav {
    display: flex;
    align-items: center;
    gap: 50px;
}

.navigation-nav a {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s;
}

.navigation-nav a.active,
.navigation-nav a:hover {
    color: rgb(var(--primary-color));
}

.navigation-button {
    border-radius: 20px;
    background: linear-gradient(90deg, rgb(var(--primary-color)), rgb(var(--primary-color-alternative)));
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    padding: 8px 20px 7px;
    transition: opacity .2s;
}

.navigation-button:hover {
    opacity: .8;
}

.navigation-button:active {
    opacity: .65;
}

.navigation-copyright {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

footer.navigation {
    background: rgb(var(--primary-color));
    margin: 70px 0 0;
    width: 100vw;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Hero */
.hero {
    padding: 50px 0 0;
    margin: 80px 0 100px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hero-image {
    position: absolute;
    right: 0;
}

.hero-title {
    font-weight: 700;
    font-size: 38px;
    line-height: 1.6;
}

.hero-title .prefix {
    background: rgba(var(--primary-color), .2);
    border-radius: 31px;
    color: rgb(var(--primary-color));
    padding: 5px 20px;
}

.hero-subtitle {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    margin: 20px 0 36px;
    max-width: 550px;
}

.hero-subtitle span {
    color: rgb(var(--primary-color));
}

.hero-buttons {
    display: flex;
    gap: 25px;
}

.hero-button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-button span {
    font-size: 18px;
    font-weight: 700;
}

.hero-button.__participate {
    padding: 12px 30px 11px;
    border-radius: 30px;
    background: linear-gradient(90deg, rgb(var(--primary-color)), rgb(var(--primary-color-alternative)));
    box-shadow: 0 6px 31.2px #ffffff73 inset;
    transition: opacity .2s;
}

.hero-button.__participate:hover {
    opacity: .8;
}

.hero-button.__participate:active {
    opacity: .65;
}

.hero-button.__participate span {
    color: #fff;
}

.hero-button.__info svg {
    transition: transform .2s;
}

.hero-button.__info span {
    line-height: 1;
}

.hero-button.__info:hover svg {
    transform: translate(5px);
}

/* Rules */
.rules {
    margin: 100px 0 0;
    padding: 50px 0 0;
}

.rules-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin: 70px 0 0;
}

.rules-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rules-item {
    background-color: rgba(var(--primary-color), .05);
    padding: 30px 36px;
    border-radius: 20px;
}

.rules-item_header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rules-item_icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-color), .15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--primary-color));
}

.rules-item_title {
    font-size: 21px;
    font-weight: 700;
}

.rules-item_subtitle {
    font-size: 18px;
    font-weight: 500;
    max-width: 600px;
}

.rules-item_subtitle span {
    color: rgb(var(--primary-color));
}

.rules-item_body {
    margin-top: 16px;
}

/* Participate */
.participate {
    margin: 100px 0 0;
    padding: 50px 0 0;
}

.participate-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 70px 0 0;
}

.participate-item {
    background-color: rgba(var(--primary-color), .05);
    padding: 25px 30px;
    border-radius: 20px;
    overflow: hidden;
    transition: background-color .2s ease-in-out;
}

.participate-item.animation {
    background-color: rgba(var(--primary-color), .1);
}

.participate-item_header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.participate-item_icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-color), .15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--primary-color));
}

.participate-item_title {
    font-size: 21px;
    font-weight: 700;
}

.participate-item_body {
    display: flex;
    gap: 15px;
    margin-top: 16px;
}

.participate-item_content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.participate-item_subtitle {
    font-weight: 700;
    font-size: 16px;
    max-width: 260px;
}

.participate-item_qr {
    border-radius: 10px;
}

.participate-item_address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 15px;
    flex: 1;
}

.participate-item_address p {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.participate-item_address svg {
    color: rgb(var(--primary-color));
}

.participate-item.check-visible .address-done {
    width: 14px;
    height: 11px;
    min-width: 14px;
    min-height: 11px;
    max-width: 14px;
    max-height: 11px;
    opacity: 1;
}

.participate-item .address-done {
    width: 0;
    height: 0;
    min-width: 0;
    min-height: 0;
    max-width: 0;
    max-height: 0;
    opacity: 0;
    transition: opacity .2s;
    color: rgb(var(--primary-color));
}

.participate-item_footer {
    display: flex;
    align-items: center;
    gap: 10px 16px;
}

.participate-item_button {
    border-radius: 10px;
    background: linear-gradient(90deg, rgb(var(--primary-color)), rgb(var(--primary-color-alternative)));
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    padding: 10px 20px 8px;
    transition: opacity .2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.participate-item_button:hover {
    opacity: .8;
}

.participate-item_button:active {
    opacity: .65;
}

.participate-item_status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.participate-item_status svg {
    color: rgb(var(--primary-color));
}

.participate-item_status p {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Calculator */
.calculator-items {
    margin: 16px 0 10px;
    display: flex;
    gap: 20px;
}

.calculator-item {
    width: 100%;
}

.calculator-item > p {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.calculator-item .input {
    height: 48px;
    background: rgba(var(--primary-color), .1);
    border-radius: 10px;
    display: flex;
    padding: 0 15px;
    align-items: center;
}

.calculator-item .coin {
    display: flex;
    align-items: center;
}

.calculator-item .coin span {
    font-weight: 600;
    font-size: 16px;
    margin: 0 9px 0 8px;
}

.calculator-item input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    margin-left: 15px;
    font-weight: 600;
    font-size: 16px;
    color: rgb(var(--secondary-color));
}

.calculator-button {
    background: linear-gradient(90deg, rgb(var(--primary-color)), rgb(var(--primary-color-alternative)));
    border-radius: 10px;
    padding: 14px 20px 13px;
    width: 100%;
    display: block;
    text-align: center;
    transition: background-color .2s, opacity .2s;
    color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
}

.calculator-button:disabled {
    cursor: default;
    pointer-events: none;
    opacity: .5;
}

.calculator-button span {
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    font-size: 15px;
    transition: color .2s;
}

.calculator-button:hover {
    opacity: .75;
}

.calculator-button:active {
    opacity: .6;
}

.calculator-button .loader {
    width: 20px;
    height: 20px;
    border: 2px solid #FFFFFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
}

@keyframes rotation {
    0% {
        transform: translateY(50%) rotate(0);
    }
    to {
        transform: translateY(50%) rotate(360deg);
    }
}

/* Transactions */
.transactions {
    margin: 100px 0 0;
    padding: 50px 0 0;
}

.transactions-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    margin: 70px 0 0;
}

.transactions table {
    border-spacing: 0;
    border-collapse: separate;
    width: 100%;
    max-width: 100%;
    text-align: left;
    border-radius: 20px;
    overflow: hidden;
    font-size: 16px;
}

.transactions table thead {
    border-radius: 20px 20px 0 0;
    background: rgb(var(--primary-color));
}

.transactions table thead th {
    font-weight: 600;
    color: #fff;
}

.transactions table th,
.transactions table td {
    padding: 20px;
    white-space: nowrap;
}

.transactions table th:first-child,
.transactions table td:first-child {
    padding-left: 36px !important;
}

.transactions table th:last-child,
.transactions table td:last-child {
    padding-right: 36px !important;
}

.transactions table tbody tr:nth-child(odd) {
    background: rgba(var(--primary-color), .05);
}

.transactions table tr.contentLoading td > div {
    background: linear-gradient(to right, rgba(var(--primary-color), .03) 20%, rgba(var(--primary-color), .1), rgba(var(--primary-color), .03) 80%);
    background-size: 500px 100px;
    animation: moving-gradient 1s linear infinite;
}

@-webkit-keyframes moving-gradient {
    0% {
        background-position: -250px 0;
    }
    to {
        background-position: 250px 0;
    }
}

.transactions table td {
    font-weight: 500;
}

.transactions table td:last-child {
    width: 1%;
}

.transactions table td > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transactions table td > div > * {
    display: inline-block;
    vertical-align: middle;
}

.transactions table .coin {
    height: 30px;
    min-width: 140px;
    max-width: 140px;
}

.transactions table .coin > * {
    display: inline-block;
    vertical-align: middle;
}

.transactions table .coin img {
    width: 30px;
    height: 30px;
}

.transactions table .coin p {
    margin-left: 7px;
    font-weight: 600;
}

.transactions table .address {
    min-width: 160px;
    max-width: 160px;
    height: 24px;
}

.transactions table .value,
.transactions table .date {
    min-width: 150px;
    max-width: 150px;
    height: 24px;
}

.transactions table .status {
    min-width: 100px;
    max-width: 100px;
    height: 31px;
}

.transactions table .status span {
    color: #19b000;
    background: #19b00026;
    padding: 6px 15px 4px;
    height: 100%;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

/* Media Queries */
@media (max-width: 1070px) {
    .participate-items {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .transactions-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .transactions table {
        min-width: 600px;
    }
    
    /* Ensure background covers properly on mobile */
    .background {
        background-size: cover;
        background-position: center top;
    }
    
    /* Make live transactions table responsive */
    .transactions-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .transactions-table thead,
    .transactions-table tbody,
    .transactions-table th,
    .transactions-table td,
    .transactions-table tr {
        display: block;
    }
    
    .transactions-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .transactions-table tr {
        border: 1px solid #ccc;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .transactions-table td {
        border: none;
        position: relative;
        padding: 8px 0;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .transactions-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: rgb(var(--primary-color));
        width: 30%;
        min-width: 80px;
    }
    
    .status-success {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 1000px) {
    .hero {
        margin: 50px 0 100px;
    }
    
    .hero-container {
        justify-content: center;
    }
    
    .hero-title,
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .rules-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .rules-image {
        width: 100%;
        max-width: 373px;
        height: auto;
    }
}

/* Responsive hero image for tablets and medium screens */
@media (max-width: 1200px) and (min-width: 769px) {
    .hero-image {
        max-width: 350px;
        position: relative;
        right: auto;
        margin: 20px auto 0;
        display: block;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
        margin-top: 20px;
    }
}

/* Hide hero image and badge on mobile phones */
@media (max-width: 768px) {
    .hero-image {
        display: none;
    }
    
    .hero-badge {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .navigation-nav {
        display: none;
    }
    
    /* Better table display on tablets */
    .transactions-table {
        font-size: 15px;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 14px 12px;
    }
    
    .status-success {
        font-size: 14px;
        padding: 5px 12px;
    }
}

@media (max-width: 550px) {
    .participate-item_header {
        justify-content: center;
    }
    
    .participate-item_body {
        flex-direction: column;
        align-items: center;
    }
    
    .participate-item_content {
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .participate-item_button {
        width: 100%;
    }
    
    .participate-item_footer {
        flex-direction: column;
        width: 100%;
    }
    
    .calculator-items {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    footer .navigation-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation-logo {
        height: 25px;
    }
    
    .navigation-copyright {
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title svg {
        height: 70px;
        width: auto;
    }
    
    .hero {
        margin: 0 0 70px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin: 20px 0 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-button {
        width: 100%;
        justify-content: center;
    }
    
    .rules,
    .rules-wrapper {
        margin: 50px 0 0;
    }
    
    .rules-item {
        padding: 20px 25px;
    }
    
    .rules-item_header {
        gap: 15px;
    }
    
    .rules-item_icon {
        width: 35px;
        height: 35px;
    }
    
    .rules-item_icon svg {
        width: 20px;
        height: 20px;
    }
    
    .rules-item_title {
        font-size: 20px;
    }
    
    .rules-item_subtitle {
        font-size: 17px;
    }
    
    .participate,
    .participate-items {
        margin: 50px 0 0;
    }
    
    .participate-item {
        padding: 20px 25px;
    }
    
    .participate-item_header {
        gap: 15px;
    }
    
    .participate-item_icon {
        width: 35px;
        height: 35px;
    }
    
    .participate-item_icon svg {
        width: 20px;
        height: 20px;
    }
    
    .participate-item_title {
        font-size: 20px;
    }
    
    .participate-item_subtitle {
        font-size: 17px;
    }
    
    .transactions {
        margin: 50px 0 0;
    }
    
    .transactions-wrapper {
        margin: 50px 0;
    }
    
    footer.navigation {
        margin: 50px 0 0;
    }
}

@media (max-width: 350px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        margin: 20px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title svg {
        height: 60px;
        width: auto;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .participate-item_address p {
        font-size: 14px;
        word-break: break-all;
    }
    
    .transactions table {
        font-size: 14px;
    }
    
    .transactions table th,
    .transactions table td {
        padding: 12px 8px;
    }
    
    /* Additional mobile responsive styles for live transactions */
    .transactions-table td:before {
        min-width: 60px;
        width: 25%;
        font-size: 12px;
    }
    
    .transactions-table td {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .transactions-table tr {
        margin-bottom: 8px;
        padding: 8px;
    }
}

/* Live transactions table styles */
.live-transactions {
    margin-top: 40px;
    margin-bottom: 40px;
}
.transactions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 24px #0001;
    font-size: 18px;
    margin-top: 32px;
}
.transactions-table th {
    background: rgb(var(--primary-color));
    color: #fff;
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 20px;
}
.transactions-table td {
    padding: 16px 16px;
    border-bottom: 1px solid #f5eaea;
    background: rgba(255,0,64,0.03);
}
.transactions-table tr:last-child td {
    border-bottom: none;
}
.transactions-table tbody tr {
    transition: background 0.2s;
}
.transactions-table tbody tr:hover {
    background: #fff6f8;
}
.status-success {
    background: #e6fbe6;
    color: #2e9d2e;
    border-radius: 8px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wallet address monospace font */
.participate-item_address p {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 18px;
    letter-spacing: 0.5px;
    background: #f7f7fa;
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
}