/* Professional Black & White Theme - P2P Exchange */

/* Navigation Notification Badge */
.nav-notification-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

/* My Trades Page */
.trades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.trade-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.trade-item.has-notifications {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.trade-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.trade-item-header h3 {
    margin: 0;
    color: #000;
    font-size: 1.2rem;
}

.trade-item-details {
    margin-bottom: 20px;
}

.trade-item-details p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #495057;
}

.trade-item-actions {
    display: flex;
    gap: 12px;
}

.trade-item-actions .btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state h3 {
    margin-bottom: 12px;
    color: #495057;
}

.empty-state p {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Chat Interface */
.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 24px 0;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    margin: 0;
    color: #000;
    font-size: 1.5rem;
}

.trade-info {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #6c757d;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 16px;
    max-width: 70%;
}

.message-own {
    margin-left: auto;
}

.message-other {
    margin-right: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.message-sender {
    font-weight: 600;
    color: #495057;
}

.message-time {
    color: #6c757d;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.message-own .message-content {
    background: #007bff;
    color: white;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: white;
}

.message-form {
    display: flex;
    gap: 12px;
}

.input-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.input-group textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.input-group button {
    padding: 12px 20px;
    white-space: nowrap;
}

.orders-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 24px;
}

.orders-section h3 {
    margin-bottom: 16px;
    color: #000;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.notification-count {
    font-size: 10px;
    font-weight: bold;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Trade Card Header with Notification */
.trade-card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    background: #000000;
    color: #ffffff;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Significantly increased from 80px for much better logo visibility */
}

.nav-brand a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Simple HIDE Logo - Inverted for Black Navbar */
.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: invert(1); /* Makes black logo white for visibility on black navbar */
}

.brand-text {
    font-size: 2rem; /* Increased text size */
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-brand a:hover .brand-logo {
    transform: scale(1.05);
}

.nav-brand a:hover .brand-text {
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Hide old FontAwesome icon */
.nav-brand i {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.nav-link.active {
    border-bottom-color: #ffffff;
    font-weight: 600;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid #333333;
    border-radius: 6px;
    background: #000000;
    color: #ffffff;
    font-weight: 500;
    Still see just white off rectagle inside white rectabnge - don't overcomplicate it JUST PUT THE RESIZED IMAGE ON THE PAGE THATS IT    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.language-selector select:hover {
    background: #1a1a1a;
    border-color: #ffffff;
}

.language-selector select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

/* Auth Links */
.auth-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.auth-links .btn-primary {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.auth-links .btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
}

.user-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.user-menu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.logout-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: #ffffff;
    text-decoration: underline;
}

.user-greeting {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    margin-top: 100px; /* Updated to match new header height */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Filters Panel */
.filters-panel {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.container {
    width: 75%;
    margin: auto;
    padding: 0 24px;
    align-items: center;
}

/* Filters */
.filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.main-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    min-width: 160px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #000000;
}

.filter-select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

/* Direction Buttons */
.direction-buttons {
    display: flex;
    gap: 12px;
}

.direction-btn {
    padding: 12px 24px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.direction-btn.buy {
    background: #000000;
    color: #ffffff;
}

.direction-btn.buy:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.direction-btn.buy.active {
    background: #000000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.direction-btn.sell {
    background: #ffffff;
    color: #000000;
}

.direction-btn.sell:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.direction-btn.sell.active {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.additional-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Ad Board Container */
.ad-board-container {
    flex: 1;
    background: #fafafa;
    padding: 24px 0;
}

.ad-board {
    background: #ffffff;
    margin: 0 auto;
    width: 80%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    border: 1px solid #e5e5e5;
}

.ad-board-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-board-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.ad-count {
    font-weight: 500;
    color: #666666;
    font-size: 0.9rem;
}

.ad-board-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    scrollbar-width: thin;
    scrollbar-color: #cccccc #f5f5f5;
}

.ad-board-content::-webkit-scrollbar {
    width: 6px;
}

.ad-board-content::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.ad-board-content::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.ad-board-content::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Trades Grid */
.trades-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Trade Cards */
.trade-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.trade-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #000000;
}

.trade-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.trade-pair {
    font-weight: 600;
    color: #000000;
    font-size: 1.1rem;
}

.direction-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: fit-content;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.direction-badge:disabled {
    cursor: default;
    opacity: 0.7;
}

.direction-badge:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.direction-badge.buy {
    background: #000000;
    color: #ffffff;
}

.direction-badge.buy:not(:disabled):hover {
    background: #1a1a1a;
}

.direction-badge.sell {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

.direction-badge.sell:not(:disabled):hover {
    background: #000000;
    color: #ffffff;
}

.trade-card-body {
    flex: 1;
    margin: 0 24px;
}

.trade-card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.trade-description {
    color: #666666;
    line-height: 1.5;
    font-weight: 500;
}

.trade-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999999;
    margin-top: 12px;
}

.trade-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trade-card-footer {
    min-width: 120px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-outline {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-danger {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-danger:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.trade-action-btn {
    background: #d32f2f !important;
    border-color: #d32f2f !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.trade-action-btn:hover {
    background: #b71c1c !important;
    border-color: #b71c1c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3) !important;
}

/* View to Action Button Styles */
.view-to-action-btn {
    background: #007bff !important;
    border-color: #007bff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    font-size: 0.95rem;
}

.view-to-action-btn:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* Footer */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 24px 0;
    margin-top: auto;
    border-top: 1px solid #333333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    color: #999999;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #e5e5e5;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
}

.close {
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    color: #666666;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000000;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #000000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Direction Radio */
.direction-radio {
    display: flex;
    gap: 24px;
}

.direction-radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.direction-radio input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Payment filter dropdown */
.filter-dropdown {
    position: relative;
}

.filter-toggle {
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 160px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    border-color: #000000;
}

.filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 100;
    display: none;
}

.filter-menu.open {
    display: block;
}

.filter-menu-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

/* Checkbox items */
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 4px 0;
}

/* Actions */
.filter-menu-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.btn-link {
    background: transparent;
    border: none;
    color: #000000;
    cursor: pointer;
    font-weight: 600;
    padding: 6px 8px;
    transition: all 0.2s ease;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Profile page styles */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.profile-header {
    background: #000000;
    color: #ffffff;
    padding: 48px 32px;
    text-align: center;
}

.profile-header i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.profile-header h1 {
    margin: 0 0 12px 0;
    font-size: 2rem;
    font-weight: 600;
}

.profile-header p {
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.profile-section {
    padding: 32px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h2 {
    margin: 0 0 24px 0;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-info {
    display: grid;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #000000;
}

.info-value {
    color: #666666;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-actions .btn {
    flex: 1;
    min-width: 150px;
}

.trades-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.trade-info h3 {
    margin: 0 0 6px 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
}

.trade-info p {
    margin: 0 0 6px 0;
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
}

.trade-info small {
    color: #999999;
    font-size: 0.8rem;
}

.trade-actions {
    display: flex;
    gap: 12px;
}

.status-active {
    color: #000000;
    font-weight: 600;
}

.status-inactive {
    color: #666666;
    font-weight: 600;
}

.no-trades {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 24px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    max-width: 320px;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-weight: 500;
}

.notification-success {
    background: #000000;
    color: #ffffff;
    border-left: 4px solid #10b981;
}

.notification-error {
    background: #000000;
    color: #ffffff;
    border-left: 4px solid #ef4444;
}

.notification-info {
    background: #000000;
    color: #ffffff;
    border-left: 4px solid #3b82f6;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 12px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Page Content Styles */
.about-content,
.contact-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 24px;
}

.about-content h2,
.contact-content h2,
.terms-content h2 {
    color: #000000;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-content p,
.contact-content p,
.terms-content p {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 400;
}

.about-content ul,
.contact-content ul,
.terms-content ul {
    margin: 1rem 0 1rem 2rem;
    color: #1a1a1a;
}

.about-content li,
.contact-content li,
.terms-content li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #000000;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.terms-content h2 {
    color: #000000;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
    }
    
    .main-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .direction-buttons {
        justify-content: center;
    }
    
    .trade-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .trade-card-body {
        margin: 0;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 24px;
        width: 95%;
    }
    
    .ad-board {
        margin: 12px;
    }
    
    .ad-board-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 12px;
    }
    
    .ad-board-content {
        padding: 20px 24px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .direction-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .direction-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .trade-card {
        padding: 16px;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* Ads board centering */
.ads-board {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}

.ads-header {
    text-align: center;
}

/* Keep filter bar in a single row */
.filters-panel .main-filters {
    flex-wrap: nowrap;
    gap: 20px;
}

/* Login/Register page styles */
.auth-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 32px;
    color: #000000;
    font-weight: 600;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 16px;
}

.auth-links-bottom {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.auth-links-bottom a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.auth-links-bottom a:hover {
    text-decoration: underline;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

.admin-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.admin-header h1 {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.admin-header h1 i {
    color: #000000;
    font-size: 2rem;
}

.admin-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

/* Admin Navigation Tabs */
.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.tab-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.tab-btn:hover {
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tab-btn.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    padding: 32px;
    min-height: 500px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000, #333333);
}

.stat-card:hover {
    border-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 3rem;
    color: #000000;
    margin-bottom: 20px;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1;
}

.stat-info p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Items */
.admin-category-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e9ecef;
}

.admin-category-header h3 {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-category-header h3 i {
    color: #000000;
    font-size: 1.5rem;
}

.admin-category-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.admin-controls {
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.search-input::placeholder {
    color: #adb5bd;
}

.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-item {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.admin-item:hover {
    border-color: #000000;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.admin-item-header {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.admin-item-header:hover {
    background: linear-gradient(135deg, #f1f3f4 0%, #ffffff 100%);
}

.admin-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 20px;
}

.admin-item-fields {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    flex: 1;
}

.field-value {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    white-space: nowrap;
}

.admin-item-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.admin-item-toggle {
    color: #6c757d;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.admin-item-toggle:hover {
    background: #e9ecef;
    color: #000000;
}

.admin-item-expanded {
    padding: 32px;
    border-top: 1px solid #e9ecef;
    background: #ffffff;
    animation: slideDown 0.3s ease-out;
    /* Ensure visibility when displayed */
    display: none;
    visibility: visible;
    opacity: 1;
    max-height: none;
    height: auto;
    transform: translateY(0);
}

.admin-item-expanded.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    transform: translateY(0) !important;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        max-height: 0; 
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        max-height: 1000px; 
        transform: translateY(0);
    }
}

/* Admin Forms */
.admin-item-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* User Report Page */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
}

.current {
    color: #495057;
    font-weight: 500;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 2px solid #e9ecef;
}

.report-title {
    display: flex;
    gap: 24px;
    align-items: center;
}

.user-avatar {
    font-size: 64px;
    color: #6c757d;
}

.user-info h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 600;
    color: #212529;
}

.user-subtitle {
    margin: 0 0 16px 0;
    color: #6c757d;
    font-size: 14px;
}

.user-status {
    display: flex;
    gap: 12px;
}

.status-badge, .verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d1edff;
    color: #0066cc;
}

.status-suspended {
    background: #ffe6e6;
    color: #dc3545;
}

.verified {
    background: #d4edda;
    color: #155724;
}

.unverified {
    background: #fff3cd;
    color: #856404;
}

.report-actions {
    display: flex;
    gap: 12px;
}

.report-content {
    display: grid;
    gap: 24px;
}

.report-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 2px solid #e9ecef;
    overflow: hidden;
}

.card-header {
    padding: 24px 32px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.card-content {
    padding: 32px;
}

.user-details-form {
    display: grid;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.stat-icon {
    font-size: 32px;
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #e3f2fd;
    border-radius: 50%;
}

.stat-details h4 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

.stat-details p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.trades-list {
    display: grid;
    gap: 16px;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.trade-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
    color: #212529;
}

.trade-info p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #6c757d;
}

.trade-date {
    font-size: 12px;
    color: #adb5bd;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-icon {
    font-size: 20px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
}

.log-details h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}

.log-details p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

/* Responsive Design for User Report */
@media (max-width: 768px) {
    .report-header {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    
    .report-title {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .report-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .activity-stats {
        grid-template-columns: 1fr;
    }
    
    .trade-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.form-control:hover {
    border-color: #adb5bd;
}

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

select.form-control {
    cursor: pointer;
}

/* Admin Buttons */
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: #000000;
    border-color: #000000;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Settings */
.settings-grid {
    display: grid;
    gap: 24px;
}

.setting-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.setting-card h3 {
    color: #000000;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.data-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9ecef;
    transition: .4s;
    border-radius: 34px;
    border: 2px solid #e9ecef;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 2px;
    background-color: #ffffff;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #000000;
    border-color: #000000;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* No Items Message */
.no-items {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Recent Activity */
.recent-activity {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.recent-activity h2 {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.activity-list {
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        padding: 16px;
    }
    
    .admin-header {
        padding: 24px 16px;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .admin-tabs {
        flex-direction: column;
        padding: 12px;
    }
    
    .tab-btn {
        justify-content: center;
        min-width: auto;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-item-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .admin-item-fields {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .admin-item-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .admin-item-form {
        grid-template-columns: 1fr;
    }
}

/* User Details Section */
.user-details-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.user-details-section h4 {
    color: #495057;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.activity-stat {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 500;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.info-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.info-section h5 {
    color: #495057;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
}

.info-value {
    font-weight: 600;
    color: #000000;
}

.trades-section, .messages-section {
    margin-top: 24px;
}

.trades-section h5, .messages-section h5 {
    color: #495057;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

.trades-list, .messages-list {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.trade-item, .message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f8f9fa;
}

.trade-item:last-child, .message-item:last-child {
    border-bottom: none;
}

.trade-info, .message-info {
    flex: 1;
}

.trade-info strong, .message-info strong {
    color: #000000;
    font-size: 1.05em;
}

.trade-details, .message-content {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 4px;
}

.message-content {
    margin: 8px 0 4px 0;
    font-style: italic;
}

.message-info small {
    color: #adb5bd;
    font-size: 0.8em;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

.btn-outline {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #000000;
    color: #000000;
}
    
    .settings-form {
        grid-template-columns: 1fr;
    }
    
    .data-actions {
        flex-direction: column;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
}

/* Trade Execution Styles */
.trade-execution-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.trade-status-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.timer-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.trade-requirements-panel,
.trade-chat-panel {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.panel-header {
    background: #f8f9fa;
    padding: 20px 24px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
}

.user-role-badge {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.requirements-content {
    padding: 24px;
}

.requirement-section {
    margin-bottom: 32px;
}

.requirement-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.requirement-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.step-item.active {
    border-color: #007bff;
    background: #f0f8ff;
}

.step-item.completed {
    border-color: #28a745;
    background: #f8fff9;
}

.step-item.failed {
    border-color: #dc3545;
    background: #fff8f8;
}

.step-number {
    background: #6c757d;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-item.active .step-number {
    background: #007bff;
}

.step-item.completed .step-number {
    background: #28a745;
}

.step-item.failed .step-number {
    background: #dc3545;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.step-content p {
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.5;
}

.step-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    flex-shrink: 0;
}

.step-item.active .step-status {
    color: #007bff;
}

.step-item.completed .step-status {
    color: #28a745;
}

.step-item.failed .step-status {
    color: #dc3545;
}

.payment-details {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.payment-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.payment-info {
    display: grid;
    gap: 8px;
}

.payment-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.payment-info-item:last-child {
    border-bottom: none;
}

.payment-info-label {
    font-weight: 500;
    color: #6c757d;
}

.payment-info-value {
    font-weight: 600;
    color: #000000;
    font-family: 'Courier New', monospace;
}

.evidence-upload {
    margin-top: 16px;
}

.uploaded-files {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.uploaded-file i {
    color: #28a745;
}

.verification-status {
    margin-top: 16px;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #28a745;
    font-weight: 500;
}

.release-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.trade-actions-panel {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-sender {
    font-weight: 600;
    color: #000000;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    line-height: 1.5;
    max-width: 80%;
}

.message-content.system {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    font-style: italic;
}

.chat-input-area {
    padding: 20px;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-container textarea {
    flex: 1;
    resize: none;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-input-container textarea:focus {
    outline: none;
    border-color: #007bff;
}

.chat-input-container button {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
}

.trade-info-panel {
    padding: 20px;
    border-top: 2px solid #e9ecef;
    background: #f8f9fa;
}

.trade-info-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
}

.info-value {
    font-weight: 600;
    color: #000000;
    font-family: 'Courier New', monospace;
}

.trade-info-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.trade-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
}

.trade-rate {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Modal Enhancements */
.modal-content {
    max-width: 600px;
    width: 90%;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trade-execution-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .trade-status-banner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .step-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-status {
        align-self: flex-end;
    }
    
    .release-actions {
        flex-direction: column;
    }
    
    .trade-actions-panel {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .trade-info-summary {
        align-items: flex-start;
    }
    
    .chat-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chat-input-container button {
        align-self: flex-end;
    }
}

/* Expanded Trade Card Styles */
.trade-card-expanded {
    margin-top: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 2px solid #000000;
}

.expanded-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.expanded-details {
    flex: 1;
}

.expanded-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.expanded-details p {
    margin-bottom: 8px;
    color: #666666;
    font-size: 0.95rem;
}

.expanded-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.trade-card.expanded {
    border-color: #000000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.view-btn {
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #000000;
    color: #ffffff;
}

.direction-indicator {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: fit-content;
}

.direction-indicator.buy {
    background: #000000;
    color: #ffffff;
}

.direction-indicator.sell {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}
