/* Common styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #9d50bb 0%, #6e48aa 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.pi-symbol {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Times New Roman', serif;
    cursor: default;
    user-select: none;
    transition: transform 0.3s ease;
}

.pi-symbol:hover {
    transform: scale(1.1);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-button {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Exchange Rate Display */
.current-rate {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.current-rate h2 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1.5rem;
}

.rate {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Container */
.exchange-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px)
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Level Info */
.level-info {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.limits-info {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #FFD700;
    transition: width 0.3s ease;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #9d50bb 0%, #6e48aa 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #a55bc2 0%, #7850b3 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile-first base styles */
:root {
    --primary-color: #8000ff;
    --secondary-color: #ffd700;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --padding: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.container {
    width: 100%;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    text-align: center;
    padding: 0 1rem;
}

.brand-name {
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    margin: 0.5rem 0;
}

.brand-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0.5rem 0;
    max-width: 600px;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.network-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.exchange-form-container {
    /*background: rgba(255, 255, 255, 0.8);*/
    backdrop-filter: blur(10px)
    padding: 1.5rem;
    margin: 1rem auto;
    border: 1px solid var(--border-color);
    max-width: 500px;
}

.nav-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.current-rate {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.current-rate h2 {
    margin: 0 0 10px 0;
    color: #fff;
}

.rate {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin: 0;
}

.safety-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.safety-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.safety-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--secondary-color);
}

.safety-box h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.safety-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input[type="file"] {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.address-box {
    position: relative;
    display: flex;
    align-items: center;
}

.address-box input {
    padding-right: 4rem;
}

.copy-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: #e5a82e;
}

.file-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.upload-box {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-content svg {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.upload-content small {
    color: rgba(255, 255, 255, 0.6);
}

.processing-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.processing-note svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--secondary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    border: none;
    border-radius: var(--border-radius);
    color: black;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.exchange-form-container {
    /* background: rgba(255, 255, 255, 0.8); Fix transparency */
    backdrop-filter: blur(10px); /* Fix incorrect filter */
    padding: 1.5rem;
    margin: 1rem auto;
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%; /* Ensures responsiveness */
}

@media (max-width: 768px) {
    .exchange-form-container {
        width: 90%;
        max-width: none;
    }
    
    .address-container {
        display:block; 
        height:100px;
    }
    
    .address-container input {
        width:150px;
        font-size:0.7rem;
    }
}


.submit-btn:hover {
    background-color: #e5a82e;
}

.support-dropdown {
    position: relative;
    display: inline-block;
}

.support-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.support-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.support-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 200px;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.support-content.show {
    display: block;
}

.support-content a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.support-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner Slider */
.banner-slider {
    position: relative;
    height: 250px;
    margin: 0 auto 30px;
    max-width: 800px;
    overflow: hidden;
    border-radius: 15px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.feature-box {
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-box h2 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.feature-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #9d50bb 0%, #6e48aa 100%);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header h2 {
    color: #FFD700;
    margin: 0 0 20px 0;
    font-size: 2rem;
}

.modal-body {
    color: white;
}

.modal-body p {
    margin: 10px 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

#countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
}

.pi-address-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pi-address-section h3 {
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.address-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.address-container input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: monospace;
    font-size: 1rem;
    cursor: text;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-icon {
    font-size: 1.2rem;
}

.address-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Tablet and Desktop styles */
@media (min-width: 768px) {
    .safety-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-name {
        font-size: 2rem;
    }

    .brand-description {
        font-size: 1.1rem;
    }

    .container {
        padding: 2rem;
    }

    .exchange-form-container {
        max-width: 600px;
        margin: 2rem auto;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .exchange-form-container {
        margin: 1rem;
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .processing-note {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}
