/* ========== PAGE HERO ========== */
.page-hero {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease-out;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========== CONTENT SECTION ========== */
.content-section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.section-title.center {
    text-align: center;
}

.text-block {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========== ABOUT PAGE ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.about-content {
    animation: fadeInUp 0.8s ease-out;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.stat-card {
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.values-section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.value-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.value-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.mission-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* ========== FAQ PAGE ========== */
.faq-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }
.faq-item:nth-child(7) { animation-delay: 0.4s; }
.faq-item:nth-child(8) { animation-delay: 0.45s; }
.faq-item:nth-child(9) { animation-delay: 0.5s; }
.faq-item:nth-child(10) { animation-delay: 0.55s; }

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--hover-bg);
}

.faq-icon {
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.faq-cta {
    text-align: center;
    padding: 50px;
    background-color: var(--bg-secondary);
    border-radius: 16px;
}

.faq-cta h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.faq-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-info {
    animation: fadeInUp 0.8s ease-out;
}

.contact-methods {
    margin: 30px 0 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-details a:hover {
    opacity: 0.7;
}

.contact-note {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
}

.working-hours {
    padding: 30px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.working-hours h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.working-hours p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.contact-form-wrapper {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000000' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* ========== HISTORY PAGE ========== */
.history-search {
    max-width: 700px;
    margin: 0 auto 60px;
    animation: fadeInUp 0.6s ease-out;
}

.search-form {
    margin-top: 24px;
}

.search-input-wrapper {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: transparent;
}

.search-button {
    padding: 16px 24px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #333;
}

.history-list {
    margin-bottom: 60px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
}

.recent-exchanges {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.exchanges-table-wrapper {
    overflow-x: auto;
    margin: 30px 0 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.exchanges-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
}

.exchanges-table thead {
    background-color: var(--bg-secondary);
}

.exchanges-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.exchanges-table td {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.exchanges-table tbody tr {
    transition: var(--transition);
}

.exchanges-table tbody tr:hover {
    background-color: var(--hover-bg);
}

.currency-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status-completed {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.status-processing {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

.table-note {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== TRANSACTION CARD ========== */
.transaction-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out backwards;
}

.transaction-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.transaction-id {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: monospace;
}

.transaction-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.transaction-currency {
    text-align: center;
}

.transaction-amount {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.transaction-code {
    font-size: 14px;
    color: var(--text-secondary);
}

.transaction-arrow {
    font-size: 24px;
    color: var(--text-secondary);
}

.transaction-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .mission-section {
        padding: 30px 20px;
    }

    .exchanges-table {
        font-size: 14px;
    }

    .exchanges-table th,
    .exchanges-table td {
        padding: 12px;
    }

    .transaction-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .transaction-arrow {
        transform: rotate(90deg);
    }
}
