:root {
    --primary: #0a1f3a;
    --secondary: #00d4aa;
    --accent: #ff6b35;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5f 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary);
}

.hero {
    background: linear-gradient(rgba(10, 31, 58, 0.9), rgba(10, 31, 58, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a1f3a"/><path d="M0 0L100 100M100 0L0 100" stroke="%2300d4aa" stroke-width="1"/></svg>');
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #00b894;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.exchange-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
}

.info-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--secondary);
    outline: none;
}

.network-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.network-option {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.network-option:hover {
    border-color: var(--secondary);
}

.network-option.selected {
    border-color: var(--secondary);
    background-color: rgba(0, 212, 170, 0.1);
}

.bank-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bank-option {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.bank-option:hover {
    border-color: var(--secondary);
}

.bank-option.selected {
    border-color: var(--secondary);
    background-color: rgba(0, 212, 170, 0.1);
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    text-align: center;
}

.file-upload input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.calculation {
    background-color: rgba(0, 212, 170, 0.1);
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.calculation p {
    margin-bottom: 0.5rem;
}

.calculation .result {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

.admin-panel {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    margin: 2rem auto;
}

.admin-panel h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Additional styles for new features */
.wallet-address {
    cursor: pointer;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-address:hover::after {
    content: attr(title);
    position: absolute;
    background: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000;
    max-width: 300px;
    word-break: break-all;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Error state styles */
.form-control.error {
    border-color: var(--danger);
}

.network-options.error .network-option,
.bank-options.error .bank-option {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Wallet address styles */
#wallet-address-group {
    transition: all 0.3s ease;
}

#wallet-address-group.show {
    display: block !important;
}

/* Button disabled state */
.btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background-color: #6c757d;
    transform: none;
    box-shadow: none;
}