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

.tsp-fullwidth-container {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* HEADER */
.tsp-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tsp-logo {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.tsp-language-switcher {
    display: flex;
    gap: 10px;
}

.tsp-lang-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tsp-lang-select:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* BANNER */
.tsp-banner-section {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-bottom: 3px solid #00d4ff;
}

.tsp-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MAIN CONTENT */
.tsp-main-content {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.tsp-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* SALE INFO SECTION */
.tsp-sale-info-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tsp-round-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* TIMER */
.tsp-timer-section {
    margin-bottom: 40px;
}

.tsp-timer-label {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tsp-timer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    background: rgba(0, 212, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.tsp-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tsp-time-value {
    font-size: 36px;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
}

.tsp-time-label {
    font-size: 12px;
    color: #a0a0a0;
    text-transform: uppercase;
}

.tsp-time-separator {
    font-size: 28px;
    color: #00d4ff;
    font-weight: 700;
}

/* PROGRESS BAR */
.tsp-progress-section {
    margin-bottom: 40px;
}

.tsp-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

#tsp-sold-percentage {
    font-weight: 700;
    color: #00d4ff;
    font-size: 18px;
}

.tsp-progress-bar {
    width: 100%;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.tsp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.tsp-progress-details {
    margin-top: 10px;
    font-size: 12px;
    color: #a0a0a0;
    text-align: right;
}

/* PRICE DISPLAY */
.tsp-price-display {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.tsp-price-item {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
}

.tsp-price-label {
    display: block;
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tsp-price-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
}

/* BUY SECTION */
.tsp-buy-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 20px;
}

.tsp-buy-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #00d4ff;
}

/* WALLET SECTION */
.tsp-wallet-section {
    margin-bottom: 30px;
}

.tsp-btn-connect {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.tsp-btn-connect:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.tsp-btn-connect:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tsp-wallet-icon {
    font-size: 20px;
}

.tsp-wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #a0a0a0;
}

.tsp-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
    animation: pulse 2s infinite;
}

.tsp-status-indicator.connected {
    background: #51cf66;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* FORM */
.tsp-buy-form {
    margin-bottom: 30px;
}

.tsp-form-group {
    margin-bottom: 20px;
}

.tsp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tsp-input,
.tsp-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tsp-input:focus,
.tsp-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.tsp-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* CALCULATION */
.tsp-calculation {
    background: rgba(0, 212, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 20px;
}

.tsp-calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.tsp-calc-row:last-child {
    margin-bottom: 0;
}

.tsp-calc-row span:last-child {
    font-weight: 700;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
}

/* BUY BUTTON */
.tsp-btn-buy {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.tsp-btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.tsp-btn-buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* TERMS */
.tsp-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #a0a0a0;
}

.tsp-terms input[type="checkbox"] {
    cursor: pointer;
}

/* LIMITS INFO */
.tsp-limits-info {
    background: rgba(255, 193, 7, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-size: 12px;
    color: #ffc107;
}

/* LOGS SECTION */
.tsp-logs-section {
    margin-top: 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tsp-logs-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00d4ff;
}

.tsp-logs-container {
    overflow-x: auto;
}

.tsp-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tsp-logs-table thead {
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.tsp-logs-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tsp-logs-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.tsp-logs-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.tsp-logs-table a {
    color: #00d4ff;
    text-decoration: none;
}

.tsp-logs-table a:hover {
    text-decoration: underline;
}

/* LOADING SPINNER */
.tsp-loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.tsp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.3);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#tsp-loading-text {
    margin-top: 20px;
    color: #00d4ff;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .tsp-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tsp-buy-section {
        position: static;
    }

    .tsp-price-display {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tsp-header-section {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .tsp-main-content {
        padding: 30px 20px;
    }

    .tsp-sale-info-section,
    .tsp-buy-section {
        padding: 25px;
    }

    .tsp-round-title {
        font-size: 24px;
    }

    .tsp-time-value {
        font-size: 24px;
    }

    .tsp-timer {
        padding: 15px;
        gap: 8px;
    }

    .tsp-logs-table {
        font-size: 11px;
    }

    .tsp-logs-table th,
    .tsp-logs-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .tsp-main-content {
        padding: 20px 15px;
    }

    .tsp-sale-info-section,
    .tsp-buy-section {
        padding: 20px;
    }

    .tsp-round-title {
        font-size: 20px;
    }

    .tsp-time-value {
        font-size: 20px;
    }

    .tsp-timer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tsp-price-display {
        grid-template-columns: 1fr;
    }

    .tsp-logs-section {
        padding: 20px;
    }
}
