/* Cartola-Inspired CSS (Light/Orange Theme) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;800&display=swap');

:root {
    --bg-color: #f3f3f3;
    --header-bg: #1c1c1c;
    /* Almost black */
    --card-bg: #ffffff;
    --primary-orange: #ff7a00;
    /* Cartola Orange */
    --primary-orange-hover: #e66e00;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --success-green: #37b24d;
    --danger-red: #f03e3e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
}


/* Header / Navbar */
header {
    background-color: var(--header-bg);
    color: #fff;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); Removed for flat look */
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    /* Ensure no gap */
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary-orange);
    margin-left: 5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.credits-display {
    background: #fff;
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
    font-size: 1rem;
    border-left: 4px solid var(--success-green);
}

/* Main Layout */
.container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Market Header */
.market-header {
    background: transparent;
    padding: 8px 0 8px 15px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-left: 4px solid var(--primary-orange);
}

.market-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.market-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Player Cards Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

/* Clean Card Design */
/* FF Fantasy Card Design */
.player-card {
    position: relative;
    width: 100%;
    aspect-ratio: 0.72;
    /* Approx 500x700 ratio */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    /* Let the image frame define shape visually */
    overflow: visible;
    /* Allow pop-out if needed, but usually hidden for card */
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Special Card - No extra styling needed, the special background is sufficient */

.player-card:hover {
    /* transform: scale(1.05); Removed per user request */
    z-index: 10;
}

/* Badge: Sistema (top right corner) */
.badge-sistema {
    position: absolute;
    top: 8%;
    right: 8%;
    background: rgba(52, 152, 219, 0.95);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 900;
    z-index: 15;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge: Especial (top left corner) */
.badge-especial {
    position: absolute;
    top: 8%;
    left: 8%;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 900;
    z-index: 15;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

/* Seller Tag (below price button) */
.seller-tag-bottom {
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.95), rgba(241, 196, 15, 0.95));
    color: white;
    text-align: center;
    padding: 4px 12px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

/* Old seller-tag kept for compatibility */
.seller-tag {
    display: none;
}

/* Layer 1: Photo (Behind Name, In front of BG) */
.card-photo {
    position: absolute;
    bottom: 37%;
    /* Adjust based on frame */
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 55%;
    object-fit: cover;
    /* or contain depending on image quality */
    object-position: top center;
    z-index: 8;
    /* mask-image removed as per user request */
}

/* Layer 2: Stats (Top Right) */
.card-stats {
    position: absolute;
    top: 13%;
    /* Moved up */
    right: 13%;
    /* Moved closer to edge */
    text-align: center;
    color: #fdfdfd;
    z-index: 5;
    /* text-shadow: 1px 1px 0px #000;*/
}

.card-overall {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    font-weight: 800;
    /* ExtraBold */
    line-height: 0.9;
    color: #ffeba7;
    text-shadow: none;
    /* Shadow removed */
}

.card-role {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    /* Medium */
    text-transform: uppercase;
    letter-spacing: 7px;
}

/* Layer 3: Team Logo (Top Left) */
.card-team-logo {
    position: absolute;
    top: 18%;
    /* Moved down */
    left: 14%;
    /* Moved left */
    width: 35px;
    /* Reduced from 45px */
    height: 35px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    z-index: 5;
    box-shadow: none;
}

.card-team-logo img {
    width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* NEW: Extra Stats (Left) */
/* NEW: Extra Stats (Bottom - Horizontal) */
.card-extra-stats {
    position: absolute;
    bottom: 19%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    z-index: 5;
    text-align: center;
    width: 100%;
}

.stat-row {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    display: block;
    color: #bbb;
    font-size: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    color: #ffeba7;
    font-size: 0.55rem;
    font-weight: 800;
}

/* Layer 4: Name Bar (Bottom) */
.card-name-bar {
    position: absolute;
    bottom: 30%;
    /* Adjust to sit inside the frame bar */
    left: 10%;
    right: 10%;
    text-align: center;
    z-index: 5;
}

.card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    /* Medium */
    color: #ffeba7;
    text-transform: uppercase;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);*/
    background: transparent;
    padding: 2px 0;
}

/* Layer 5: Price/Button (Overlay or Below) */

.card-action {
    position: absolute;
    bottom: -15%;
    /* Pushed outside */
    left: 0;
    right: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
}

.btn-card-hire {
    display: inline-block;
    background: #333333;
    /* Neutral Dark Gray */
    border: 2px solid #555555;
    /* Neutral Border */
    color: #f0f0f0;
    /* Off-white text */
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-card-hire:hover {
    background: #444444;
    border-color: #777777;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}





.status-disp {
    background: var(--success-green);
}

.status-susp {
    background: var(--danger-red);
}

.status-null {
    background: #adb5bd;
}

/* Admin Sidebar Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #1a1a1d;
    color: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    padding-top: 20px;
    border-right: 1px solid #333;
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 1.4rem;
    color: #fff;
}

.sidebar-header h2 span {
    color: var(--primary-orange);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #a8a8b3;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: #2c2c31;
    color: white;
    border-left-color: var(--primary-orange);
}

.main-content {
    flex-grow: 1;
    background: #f4f6f8;
    padding: 20px;
    overflow-y: auto;
}

/* Adjustments for existing containers when inside admin layout */
.admin-container .container {
    padding: 0;
    max-width: none;
    margin: 0;
}

/* Admin Forms */
.form-card {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

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

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-orange);
    outline: none;
    background: #fff;
}

.photo-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.current-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel {
    background: #e9ecef;
    color: var(--text-primary);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: #dee2e6;
}

/* Main Navigation Menu */
.main-nav {
    background-color: var(--primary-orange);
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    position: sticky;
    top: 66px;
    /* Adjust based on header height */
    z-index: 90;
    margin-top: 0;
    /* Connect to header */
    border-top: none;
}

.nav-container {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.main-nav a {
    display: block;
    padding: 12px 30px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border-bottom: 4px solid transparent;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: #fff;
}

/* Dashboard My Team Section */
.my-team-section {
    background: transparent;
    padding: 2rem;
    border-radius: 0;
    border: none;
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* 1. Left: Cards Area */
.dash-cards-area {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.dash-cards-area h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.cards-placeholder {
    flex-grow: 1;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #eee;
}

/* 2. Right: Profile Card */
.dash-profile-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hexagon-logo {
    position: relative;
    width: 120px;
    height: 120px;
    background-color: transparent;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.dash-profile-card .team-names {
    margin-bottom: 15px;
}

.dash-profile-card .team-names .team-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.dash-profile-card .team-names .player-name {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

/* Horizontal Stats at Bottom */
.profile-stats-horizontal {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.profile-stats-horizontal .stat-item {
    flex: 1;
    text-align: center;
}

.profile-stats-horizontal .stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.profile-stats-horizontal .stat-value {
    display: block;
    font-size: 0.95rem;
    font-weight: bold;
    color: #1a1a1a;
}

.btn-edit-identity {
    margin: 15px 0;
    background: var(--primary-orange);
    color: white;
    padding: 10px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
}

.btn-edit-identity:hover {
    background: #ff8500;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

.dash-identity-area:hover .btn-edit-identity {
    opacity: 1;
    pointer-events: auto;
}

.btn-edit-identity:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 122, 0, 0.3);
}

@media (max-width: 900px) {
    .dashboard-grid {
        flex-direction: column;
    }

    /* Carousel Navigation Buttons */
    .carousel-btn {
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 20;
        transition: all 0.2s;
        font-size: 1.2rem;
        position: absolute;
        opacity: 1;
        pointer-events: all;
    }

    .carousel-btn:hover {
        background: var(--primary-orange);
        transform: scale(1.1);
    }

    .carousel-btn.disabled {
        opacity: 0.2;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.3);
    }

    .prev-btn {
        left: -15px;
    }

    .next-btn {
        right: -15px;
    }

    .dash-stats-area {
        flex-direction: row;
        flex: 1;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20000;
    /* Above modal blur (10000) */
}

.toast {
    visibility: hidden;
    min-width: 250px;
    margin-bottom: 10px;
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    border-left: 6px solid #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.toast.error {
    background-color: #fff;
    border-left-color: #ff4757;
}

.toast.success {
    background-color: #fff;
    border-left-color: #2ed573;
}

.toast-icon {
    font-size: 1.5rem;
}

/* Modal Card Styling  (Large) */
.player-card.modal-mode {
    width: 300px !important;
    /* Larger width */
    aspect-ratio: 0.72;
    margin: 0 auto;
    /* Center */
    transform: none !important;
    /* Disable hover/scale transforms */
    /* Adjust text sizes */
}

.player-card.modal-mode .card-name {
    font-size: 1.2rem !important;
    bottom: 28% !important;
    /* Adjust if needed */
}

.player-card.modal-mode .card-overall {
    font-size: 3rem !important;

}

.player-card.modal-mode .card-role {
    font-size: 1rem !important;
    letter-spacing: 4px;

}

.player-card.modal-mode .stat-label {
    font-size: 0.6rem !important;

}

.player-card.modal-mode .stat-value {
    font-size: 0.9rem !important;

}

.player-card.modal-mode .card-team-logo {
    width: 70px !important;
    height: 70px !important;
    top: 14% !important;
    left: 12% !important;

}

.player-card.modal-mode .card-stats {
    top: 13% !important;
}

.player-card.modal-mode .card-overall {
    font-size: 2.6rem !important;
}

.player-card.modal-mode .card-role {
    font-size: 1.1rem !important;
    letter-spacing: 4px !important;
}

.player-card.modal-mode .card-name {
    font-size: 1.2rem !important;
}

.player-card.modal-mode .card-extra-stats {
    gap: 20px !important;
}

.player-card.modal-mode .stat-label {
    font-size: 0.7rem !important;
}

.player-card.modal-mode .stat-value {
    font-size: 1rem !important;
}


/* ADMIN TABLES GLOBAL STYLES */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: var(--primary-orange);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-add-new {
    display: inline-block;
    background-color: #8e44ad;
    /* Purple */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-add-new:hover {
    background-color: #9b59b6;
}

/* Custom Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    /* Above everything */
    display: none;
    justify-content: center;
    align-items: center;
}

.confirm-modal-content {
    background: #1c1c1c;
    /* Dark theme */
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

.confirm-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.confirm-modal-text {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-confirm-cancel {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
}

.btn-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-confirm-action {
    background: var(--primary-orange);
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
    transition: all 0.2s;
}

.btn-confirm-action:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 122, 0, 0.4);
}

/* Market Countdown Widget */
.market-countdown-wrap {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #2c2c2c;
    border: 2px solid #FFD700;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 50px;
    height: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.market-countdown-wrap.expanded {
    width: 220px;
    padding: 5px 20px 5px 5px;
}

.countdown-circle {
    width: 40px;
    height: 40px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.countdown-content {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.market-countdown-wrap.expanded .countdown-content {
    opacity: 1;
    transform: translateX(0);
}

.countdown-label {
    font-size: 0.55rem;
    color: #FFD700;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.countdown-time {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1;
}

body.home-page {
    padding-top: 76px;
}

@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
    
    body.home-page {
        padding-top: 66px !important;
    }

    .market-countdown-wrap {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .market-countdown-wrap.expanded {
        width: 190px;
    }

    .countdown-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .countdown-time {
        font-size: 0.95rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Global Footer */
.main-footer {
    background-color: #0d0d0d;
    padding: 60px 20px 40px;
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 48px;
    height: 48px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 122, 0, 0.4);
    background-color: var(--primary-orange-hover);
}

.footer-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.partner-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.partner-logo img.logo-freefire {
    height: 35px;
    margin-top: 5px;
}

.partner-text {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #555;
    margin-top: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 20px 30px;
    }
    
    .footer-partners {
        flex-direction: column;
        gap: 30px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}