/* Glassmorphism Theme - Trendy */
:root {
    --bg-gradient: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-color: #fff;
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    padding: 20px;
}

/* Animated Background Shapes */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
}

body::before {
    background: #ff9a9e;
    top: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

body::after {
    background: #a18cd1;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

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

/* Glass Card Mixin */
.glass-panel {
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.logo-image {
    height: 40px;
}

/* Navigation */
.view-switcher-container {
    position: relative;
}

.view-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.view-menu-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.view-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 10px;
    min-width: 200px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.view-menu.show {
    display: block;
}

.view-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
}

.view-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.view-link.active {
    background: rgba(0, 0, 0, 0.05);
    color: #007bff;
    font-weight: bold;
}

/* Status */
.status-section {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
}

.status-label {
    opacity: 0.8;
}

.status-open {
    color: #d4ffda;
    font-weight: bold;
}

.status-closed {
    color: #ffd4d4;
}

/* Content */
.table-title {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scrolling-text-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scrolling-text span {
    margin-right: 40px;
    font-weight: 500;
}

/* Cards Grid */
.table-data-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.data-row {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.data-row:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.25);
}

.data-cell {
    display: flex;
}

/* Product Name */
.data-cell:nth-child(1) {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buy Price */
.data-cell:nth-child(2) {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 5px;
}

.data-cell:nth-child(2)::after {
    content: "Buy";
    font-size: 0.3em;
    opacity: 0.7;
    margin-left: 10px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sell Price */
.data-cell:nth-child(3) {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.data-cell:nth-child(3)::before {
    content: "Sell: ";
    opacity: 0.7;
}

/* High/Low */
.data-cell:nth-child(4) {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: auto;
}

.high-low-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9em;
}

.high-price {
    color: #ffcccb;
}

.low-price {
    color: #d4ffda;
}

/* Time */
.data-cell:nth-child(5) {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8em;
    opacity: 0.6;
}

/* Merchant Info */
.merchant-info {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.merchant-header {
    text-align: center;
    margin-bottom: 30px;
}

.merchant-title {
    font-size: 1.8em;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.merchant-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.merchant-item {
    display: flex;
    gap: 15px;
}

.merchant-label {
    font-weight: 600;
    opacity: 0.8;
}

.qr-section {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-container {
    display: flex;
    gap: 40px;
}

.qr-image {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    opacity: 0.9;
}

.qr-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8em;
    opacity: 0.7;
}

.copyright-section {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    opacity: 0.5;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .merchant-content {
        grid-template-columns: 1fr;
    }

    .status-section {
        display: none;
    }
}