@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #002eff 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    position: relative;
}





.language-switcher {
    position: relative;
    font-size: 1.1rem;
    z-index: 10;
    margin-bottom: 1rem;
}

.language-switcher button {
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.language-switcher img {
    width: 24px;
    height: 18px;
    object-fit: cover;
}

.lang-dropdown {
    margin-top: 6px;
    background: #a1e8ff;
    border: 1px solid #ccc;
    border-radius: 8px;
    list-style: none;
    padding: 0;
    position: absolute;
    right: 0;
    min-width: 140px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.lang-dropdown li {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lang-dropdown li:hover {
    background: #f0f0f0;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




.container {
    max-width: 450px;
    width: 100%;
    z-index: 1;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
    padding: 0 10px;
    position: relative;
    overflow: hidden;
}



.card h1 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 2.2rem;
    color: rgb(0, 0, 0);
}

#login-btn {
    background: black;
    color: white;
    box-shadow: 0 4px 15px rgb(102 126 234 / 0%);
    animation: shadowAppear 1.5s ease-in-out 7.5s forwards;
}

@keyframes shadowAppear {
    from {
        box-shadow: 0 4px 15px rgb(102 126 234 / 0%);
    }

    to {
        box-shadow: 0 4px 15px rgb(102 126 234);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1 {
    text-align: center;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

h4 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Auth sections */
.auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#logged-out {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(90deg, #000000 0%, #0014ff 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.4rem;
    border: solid 2px;
}



#logged-out::after {
    position: relative;
    z-index: 2;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.logo {
    max-width: 150px;
    margin-bottom: 1rem;
}


/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
}

.btn-purharse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 23px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: rgb(31 227 212 / 94%);
    color: #000000;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}


.user-header {
    position: relative;
    margin-bottom: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #002eff 0%, #764ba2 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info-compact {
    flex: 1;
    text-align: left;
}

.user-info-compact h3 {
    margin-bottom: 5px;
    color: #dbdbdb;
}

.balance-compact {
    font-size: 1.2rem;
    font-weight: 700;
    color: #29d150;
}

.dropdown-icon {
    color: #dbdbdb;
    transition: transform 0.3s ease;
}

.user-profile.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Menú desplegable */
.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #a1e8ff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.logout-item {
    border-top: 1px solid #e9ecef;
    color: #dc3545;
}

.logout-item:hover {
    background: #fff5f5;
}

/* App showcase */
.app-showcase {
    text-align: center;
}

.app-card-main {
    padding: 8px 15px;
    background: linear-gradient(135deg, #002eff 0%, #764ba2 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 0.8rem;
}

.app-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #a8d8ff;
    font-size: 1.1rem;
}

.app-platform i {
    font-size: 1.4rem;
    color: #4CAF50;
}

.app-description {
    color: #cacaca;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 2px;
}


.price-currency {
    font-size: 1.2rem;
    color: #a8d8ff;
    font-weight: 600;
    margin-left: 8px;
}

.app-card-main h2 {
    color: #c4c4c4;
    margin-bottom: 5px;
}



.app-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.btn-download {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
}

.price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: #22dad3;
}





/* User info */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.user-details {
    text-align: left;
}

.user-details h3 {
    margin-bottom: 5px;
    color: #333;
}

.user-details p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Balance section */
.balance-section {
    margin-bottom: 25px;
}

.balance-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* User Status Card Redesign */
.user-status-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.status-row {
    font-size: 0.9rem;
    color: #a8d8ff;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.status-value {
    font-weight: 800;
    text-transform: uppercase;
}

.status-pending {
    color: #ffbd2e;
}

.status-active {
    color: #28a745;
}

.status-blocked {
    color: #ff4d4d;
}

.status-insufficient {
    color: #ffc107;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.status-icon {
    font-size: 1.2rem;
    color: #4CAF50;
    width: 24px;
    text-align: center;
}

.status-info {
    flex: 1;
    text-align: left;
}

.item-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.status-action-btn {
    background: #4CAF50;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-action-btn:hover {
    transform: scale(1.1);
    background: #45a049;
}

.main-action-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-action-btn.status-pending {
    background: rgba(255, 189, 46, 0.1);
    color: #ffbd2e;
    border: 1px solid rgba(255, 189, 46, 0.3);
    cursor: default;
}

.main-action-btn.status-insufficient {
    background: #ffc107;
    color: #000;
}

.main-action-btn.status-insufficient:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Wallet address display adjustment */
.wallet-address {
    word-break: break-all;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* App info */
.app-info {
    margin-bottom: 25px;
}

.app-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon {
    font-size: 2rem;
}

.app-header h4 {
    margin-bottom: 5px;
    color: #333;
}

.app-header p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.app-price {
    text-align: right;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}



/* Transactions section */
.transactions-section {
    margin-bottom: 15px;
}

.transactions-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-transactions {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    text-align: left;
}

.transaction-info h5 {
    margin-bottom: 5px;
    color: #333;
}

.transaction-info p {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.transaction-amount {
    font-weight: 700;
    color: #28a745;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.account-status {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
}

.account-status.active {
    color: #28a745;
}

.account-status.blocked {
    color: red;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8rem;
}


/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    max-width: 400px;
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
}

.notification.info {
    background: #17a2b8;
}

.notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .crypto-list {
        grid-template-columns: 1fr;
    }

    .app-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .app-price {
        text-align: center;
    }

    .balance-header {
        flex-direction: column;
        gap: 10px;
    }

    .wallet-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .wallet-address {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
        width: calc(100% - 40px);
    }

    .modal-actions {
        flex-direction: column;
    }

    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-primary:active {
    animation: pulse 0.3s ease;
}

.hidden {
    display: none !important;
}

.podderzhka {
    display: none;
    position: fixed;
    width: 3em;
    z-index: 9;
    border-radius: 50px;
    background: white;
    padding: 3px;
    left: 1em;
    bottom: 1em;
    box-shadow: 0 7px 11px rgba(0, 0, 0, 0.9);
}