/* ===================================
   COPYREND - ROBLOX CONTENT CREATOR
   Modern, Playful, Interactive Design
   =================================== */

:root {
    --primary: #75b6f0;
    --secondary: #84BDF2;
    --background: #EFF8FF;
    --text: #363636;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(117, 182, 240, 0.15);
    --shadow-md: 0 4px 16px rgba(117, 182, 240, 0.2);
    --shadow-lg: 0 8px 32px rgba(117, 182, 240, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #5a9dd8;
    --secondary: #6ba8e0;
    --background: #1a1d2e;
    --text: #e8e9ed;
    --white: #242838;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background-color: #0f111a;
}

[data-theme="dark"] .bg-floating-shapes .shape {
    opacity: 0.03;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 29, 46, 0.95);
    border-bottom: 1px solid rgba(232, 233, 237, 0.1);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #2a2d3f;
    color: var(--text);
    border-color: #3a3d4f;
}

[data-theme="dark"] .modal-content,
[data-theme="dark"] .form-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .package-card {
    background: var(--white);
}

[data-theme="dark"] .email-preview,
[data-theme="dark"] .price-display,
[data-theme="dark"] .transparency-card {
    background: #2a2d3f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   FLOATING BACKGROUND SHAPES
   =================================== */

.bg-floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 15%;
    animation-delay: 6s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 30%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

.brand-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-toggle,
.currency-toggle {
    display: flex;
    gap: 4px;
    background: var(--background);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.lang-btn,
.currency-btn {
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
}

.lang-btn:hover,
.lang-btn.active,
.currency-btn:hover,
.currency-btn.active {
    background: var(--primary);
    color: var(--white);
}

.theme-toggle {
    background: var(--background);
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
}

@media (max-width: 968px) {
    .nav-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .currency-toggle {
        order: -1;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 32px;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.hero-avatar {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    animation: floatAvatar 4s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.avatar-placeholder {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: none;
    align-items: center;
    justify-content: center;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    animation: floatAvatar 4s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

.placeholder-icon {
    font-size: 120px;
    opacity: 0.6;
}

@keyframes floatAvatar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===================================
   SECTIONS
   =================================== */

section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    padding: 80px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.stats-section {
    margin-top: 60px;
}

.stats-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--white);
    opacity: 0.95;
    font-weight: 500;
}

/* ===================================
   CONTENT TYPES SECTION
   =================================== */

.content-types {
    padding: 80px 0;
    background: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.content-card {
    background: var(--background);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
}

.content-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.card-desc {
    font-size: 16px;
    color: var(--text);
    opacity: 0.8;
}

/* ===================================
   COLLABORATION SECTION
   =================================== */

.collaboration {
    padding: 80px 0;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.collab-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.collab-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.collab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.collab-card:hover::before {
    transform: scaleX(1);
}

.collab-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.collab-card.featured {
    border: 3px solid var(--primary);
}

.collab-card.free {
    border-color: #4CAF50;
}

/* ===================================
   DETAILED PACKAGE PAGES
   =================================== */

.package-detail {
    padding: 40px 0;
}

.package-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}

.package-card.tower-card {
    background: linear-gradient(to bottom, var(--white), rgba(132, 189, 242, 0.05));
}

.package-card.premium-card {
    border: 3px solid var(--secondary);
}

.package-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.package-icon {
    font-size: 52px;
}

.package-title-wrapper {
    flex: 1;
}

.package-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.package-subtitle {
    font-size: 16px;
    color: var(--text);
    opacity: 0.7;
}

.package-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}

.package-price span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

.package-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
}

.package-features-section h3,
.package-notes h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 12px;
}

.package-features-detailed {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.package-features-detailed li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.notes-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
}

.best-for,
.note-text {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* Sub-packages */
.sub-package {
    background: var(--background);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.sub-package.free-package {
    border-left-color: #4CAF50;
}

.sub-package.featured-sub {
    border-left-color: var(--secondary);
    background: linear-gradient(to right, rgba(132, 189, 242, 0.1), var(--background));
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.sub-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.sub-price.free {
    color: #4CAF50;
}

.sub-price.premium {
    color: var(--secondary);
}

.sub-desc {
    margin: 8px 0;
    font-size: 15px;
}

.sub-package h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 12px 0 8px;
}

/* Package Add-on */
.package-addon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.package-addon h3 {
    color: var(--white);
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    margin-bottom: 8px;
}

.addon-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin: 8px 0;
}

.package-addon p,
.package-addon li {
    color: var(--white);
    font-size: 14px;
}

/* Transparency Section */
.transparency-section {
    padding: 60px 0;
    background: var(--white);
}

.transparency-card {
    background: var(--background);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.transparency-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.value-icon {
    font-size: 20px;
}

@media (max-width: 768px) {
    .package-card {
        padding: 24px 20px;
    }
    
    .package-title {
        font-size: 24px;
    }
    
    .package-icon {
        font-size: 40px;
    }
    
    .sub-package {
        padding: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.collab-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.collab-price-badge {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--white);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    font-family: 'Fredoka', sans-serif;
    z-index: 2;
}

.collab-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.collab-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.collab-title-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collab-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.collab-price-tag {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.collab-price-tag.free {
    color: #4CAF50;
}

.price-badge-combo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.collab-badge-inline {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collab-badge-inline.premium {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.collab-desc {
    font-size: 15px;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 20px;
}

.collab-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.collab-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid rgba(54, 54, 54, 0.1);
    position: relative;
    padding-left: 24px;
}

.collab-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.collab-features li:last-child {
    border-bottom: none;
}

.collab-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.collab-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
    display: inline-block;
}

/* ===================================
   LATEST TIKTOK SECTION
   =================================== */

.latest-tiktok {
    padding: 80px 0;
    background: var(--white);
}

.tiktok-embed {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ===================================
   LATEST YOUTUBE SECTION
   =================================== */

.latest-youtube {
    padding: 80px 0;
}

.youtube-embed {
    max-width: 800px;
    margin: 40px auto 0;
}

.youtube-embed iframe {
    width: 100%;
    min-height: 450px;
}

.youtube-cta {
    text-align: center;
    margin-top: 24px;
}

.youtube-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===================================
   PREVIOUS COLLABORATORS SECTION
   =================================== */

.prev-collaborators {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--secondary);
}

.collab-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.preview-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.preview-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.preview-card:hover .preview-image img {
    transform: scale(1.1);
}

/* ===================================
   PAGE HEADER
   =================================== */

.page-header {
    padding: 80px 0 40px;
    text-align: center;
}

.page-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text);
    opacity: 0.8;
}

/* ===================================
   CURRENCY TOGGLE
   =================================== */

.currency-section {
    padding: 40px 0;
}

.currency-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.currency-toggle label {
    font-weight: 600;
    color: var(--text);
}

.currency-buttons {
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 6px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.currency-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Rubik', sans-serif;
}

.currency-btn:hover,
.currency-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing-section {
    padding: 40px 0 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 3px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, var(--white), rgba(117, 182, 240, 0.05));
}

.pricing-card.premium {
    border-color: var(--secondary);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.pricing-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.pricing-desc {
    font-size: 15px;
    color: var(--text);
    opacity: 0.7;
}

.pricing-price {
    text-align: center;
    margin-bottom: 32px;
}

.price {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
}

.pricing-features {
    margin-bottom: 32px;
}

.feature {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid rgba(54, 54, 54, 0.1);
}

.feature:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
}

/* ===================================
   WHY CHOOSE SECTION
   =================================== */

.why-choose {
    padding: 80px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.why-card {
    background: var(--background);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.why-title-card {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.why-desc {
    font-size: 15px;
    color: var(--text);
    opacity: 0.8;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--background);
}

/* ===================================
   SEARCH SECTION
   =================================== */

.search-section {
    padding: 40px 0 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(117, 182, 240, 0.2);
}

.search-bar button {
    padding: 14px 24px;
    white-space: nowrap;
}

.search-results {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: var(--text);
    opacity: 0.8;
    display: none;
}

@media (max-width: 640px) {
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar button {
        width: 100%;
    }
}

/* ===================================
   FILTER SECTION
   =================================== */

.filter-section {
    padding: 40px 0;
    background: var(--white);
    border-bottom: 2px solid var(--background);
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-label {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    font-family: 'Fredoka', sans-serif;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.genre-filters {
    gap: 10px;
}

.sort-buttons {
    gap: 12px;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--background);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
}

.filter-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.sort-buttons .filter-btn {
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Responsive filter layout */
@media (max-width: 768px) {
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .sort-buttons .filter-btn {
        flex: 0 1 auto;
    }
}

/* ===================================
   PORTFOLIO SECTION
   =================================== */

.portfolio-section {
    padding: 40px 0 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    display: block;
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.15);
    filter: brightness(0.7);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3) 50%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    width: 100%;
}

.portfolio-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    text-align: center;
}

.portfolio-genre {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 16px;
    font-size: 14px;
}

.portfolio-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(117, 182, 240, 0.4);
}

.portfolio-card:hover .portfolio-view-btn {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(117, 182, 240, 0.6);
}

.view-icon {
    font-size: 18px;
}

.arrow {
    font-size: 16px;
    transition: var(--transition);
}

.portfolio-card:hover .arrow {
    transform: translateX(4px);
}

.empty-state {
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: var(--text);
    opacity: 0.6;
}

/* ===================================
   GAME DETAIL PAGE
   =================================== */

.game-detail {
    padding: 80px 0;
}

.game-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.game-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInLeft 0.8s ease-out;
}

.game-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.game-detail-info {
    animation: fadeInRight 0.8s ease-out;
}

.game-detail-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.game-detail-creator {
    font-size: 18px;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 30px;
}

.game-detail-creator strong {
    color: var(--primary);
    font-weight: 600;
}

.game-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.meta-icon {
    font-size: 28px;
}

.meta-label {
    display: block;
    font-size: 12px;
    color: var(--text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.game-description {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.game-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.game-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-play {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    animation: pulse-play 2s infinite;
}

@keyframes pulse-play {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 6px 24px rgba(76, 175, 80, 0.5);
    }
}

.btn-tiktok {
    background: linear-gradient(135deg, #FF0050, #E91E63);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 0, 80, 0.3);
}

.btn-tiktok:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 0, 80, 0.5);
}

.game-actions .btn span {
    font-size: 18px;
}

/* ===================================
   RECOMMENDED GAMES
   =================================== */

.recommended-games {
    padding: 80px 0;
    background: var(--white);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.recommended-card {
    background: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-sm);
}

.recommended-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.recommended-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recommended-card:hover .recommended-image img {
    transform: scale(1.1);
}

.recommended-info {
    padding: 20px;
}

.recommended-info h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.recommended-info p {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--text);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.footer-brand .brand-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.footer-brand > .brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(4px);
}

.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    opacity: 0.9;
    transition: var(--transition);
}

[data-theme="dark"] .footer-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(7%) saturate(1234%) hue-rotate(169deg) brightness(94%) contrast(87%);
}

.footer-links a:hover .footer-icon {
    filter: brightness(0) saturate(100%) invert(56%) sepia(67%) saturate(451%) hue-rotate(170deg) brightness(98%) contrast(94%);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collab-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .avatar-container {
        width: 300px;
        height: 300px;
    }
    
    .hero-avatar,
    .avatar-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .page-title {
        font-size: 38px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .game-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .game-detail-title {
        font-size: 32px;
    }
    
    .game-meta {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .nav-links {
        display: none;
    }
    
    .content-grid,
    .collab-grid,
    .pricing-grid,
    .why-grid,
    .portfolio-grid,
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .pricing-card,
    .collab-card {
        padding: 30px;
    }
    
    .game-detail-title {
        font-size: 28px;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .game-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .meta-item {
        flex: 1;
        min-width: 140px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   LINEUP BUILDER - BLUE/WHITE/BLACK
   Simplified Clean Design
   =================================== */

.lineup-body {
    background: #0a1128;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.lineup-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.lineup-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.lineup-header h1 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
}

.formation-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.formation-selector label {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.formation-selector select {
    padding: 10px 20px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
}

.formation-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Main Grid */
.lineup-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 20px;
}

/* Player Pool Panel */
.player-pool-panel {
    background: #1a1f3a;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #3b82f6;
}

.player-pool-panel h2 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

#searchPlayers {
    width: 100%;
    padding: 10px;
    background: #0a1128;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

#searchPlayers::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#searchPlayers:focus {
    outline: none;
    border-color: #60a5fa;
}

.player-pool {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-pool::-webkit-scrollbar {
    width: 6px;
}

.player-pool::-webkit-scrollbar-track {
    background: #0a1128;
    border-radius: 3px;
}

.player-pool::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

.player-item-simple {
    display: block;
    padding: 12px 16px;
    background: #0a1128;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s;
}

.player-item-simple:hover {
    background: #1e3a8a;
    transform: translateX(5px);
}

.player-item-simple.dragging {
    opacity: 0.5;
}

.player-simple-name {
    color: white;
    font-weight: 700;
    font-size: 14px;
    display: block;
    text-align: center;
}

/* Remove old player pool item styles */
.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #0a1128;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s;
}

.player-item:hover {
    background: #1e3a8a;
    transform: translateX(5px);
}

.player-item.dragging {
    opacity: 0.5;
}

.player-pool .player-item img {
    width: 45px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.player-pool-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.player-pool-name {
    color: white;
    font-weight: 700;
    font-size: 13px;
}

.player-pool-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.player-pool-name {
    color: white;
    font-weight: 700;
    font-size: 13px;
}

.player-pool-nat {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

/* Player Card on Field */
.player-item.on-field {
    background: transparent;
    border: none;
    cursor: grab;
    padding: 0;
    width: 120px;
}

.player-item.on-field:active {
    cursor: grabbing;
}

.player-card {
    width: 100%;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 3px solid #3b82f6;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.player-item.on-field.selected .player-card {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 6px 16px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.card-top {
    background: #1e3a8a;
    position: relative;
    height: 150px;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
}

.card-stats {
    width: 32px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    z-index: 3;
    border-right: 2px solid #3b82f6;
    flex-shrink: 0;
}

.flag-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    border: 2px solid #3b82f6;
    background: white;
    flex-shrink: 0;
}

.position-label-card {
    background: #3b82f6;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-card-img {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 32px);
    height: 150px;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    display: block;
}

.card-bottom {
    background: #0f172a;
    padding: 8px;
    text-align: center;
    border-top: 2px solid #3b82f6;
}

.card-name {
    color: white;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.card-nationality {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 500;
}

/* Field Panel */
.field-panel {
    background: #1a1f3a;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #3b82f6;
}

.football-pitch {
    background: linear-gradient(to bottom,
        #22c55e 0%,
        #16a34a 50%,
        #22c55e 100%
    );
    border: 4px solid white;
    border-radius: 12px;
    padding: 30px 20px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.football-pitch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%);
}

.line-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line-label {
    color: white;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 6px;
    letter-spacing: 1px;
}

.player-line {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

.player-slot {
    width: 120px;
    min-height: 185px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.player-slot:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.player-slot.drag-over {
    border-style: solid;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.action-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-clear,
.btn-capture {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear {
    background: #ef4444;
    color: white;
}

.btn-clear:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-capture {
    background: #3b82f6;
    color: white;
}

.btn-capture:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Roles Panel */
.roles-panel {
    background: #1a1f3a;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #3b82f6;
}

.roles-panel h2 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.selected-info {
    background: #0a1128;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 60px;
    border: 2px solid #3b82f6;
}

.selected-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

.selected-player {
    color: white;
}

.selected-player strong {
    color: #3b82f6;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.current-roles {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.role-btn {
    padding: 12px;
    background: #0a1128;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.role-btn:hover {
    background: #1e3a8a;
    transform: translateX(5px);
}

.role-btn:active {
    transform: translateX(5px) scale(0.98);
}

.roles-list {
    max-height: 300px;
    overflow-y: auto;
}

.roles-list::-webkit-scrollbar {
    width: 6px;
}

.roles-list::-webkit-scrollbar-track {
    background: #0a1128;
    border-radius: 3px;
}

.roles-list::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

.roles-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-item {
    background: #0a1128;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #3b82f6;
}

.role-item strong {
    color: #3b82f6;
    font-size: 14px;
}

.role-item {
    color: white;
    font-size: 13px;
}

.empty-msg {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-size: 13px;
    padding: 20px;
}

/* Capture Modal - Fixed 1:1 Square Format */
.capture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.capture-modal-square {
    background: #1a1f3a;
    border-radius: 16px;
    padding: 20px;
    border: 3px solid #3b82f6;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 90vw;
    max-height: 90vh;
}

.close-capture-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    transition: all 0.2s;
}

.close-capture-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Square Screenshot Container - Fixed 1:1 */
.screenshot-square {
    width: 1080px;
    height: 1080px;
    max-width: 80vmin;
    max-height: 80vmin;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 4px solid #3b82f6;
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.3);
    position: relative;
}

/* Header */
.screenshot-square-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 4px solid #60a5fa;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.header-logo {
    font-size: 36px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    letter-spacing: 6px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
    color: white;
    font-weight: 600;
}

.meta-separator {
    font-size: 24px;
    opacity: 0.5;
}

.meta-formation {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
}

/* Pitch Area */
.screenshot-square-pitch {
    flex: 1;
    position: relative;
    background: linear-gradient(to bottom,
        #16a34a 0%,
        #22c55e 25%,
        #16a34a 50%,
        #22c55e 75%,
        #16a34a 100%
    );
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.pitch-lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

.pitch-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Lineup */
.screenshot-lineup {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    z-index: 2;
}

.screenshot-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Screenshot Player Cards */
.screenshot-card {
    width: 110px;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.screenshot-card-top {
    background: #1e3a8a;
    height: 120px;
    position: relative;
    display: flex;
}

.screenshot-card-badges {
    width: 28px;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-right: 2px solid #3b82f6;
    z-index: 2;
}

.screenshot-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    object-fit: cover;
    background: white;
}

.screenshot-position {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-player-img {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 28px);
    height: 120px;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.screenshot-card-bottom {
    background: #0f172a;
    padding: 8px 6px;
    text-align: center;
    border-top: 2px solid #3b82f6;
}

.screenshot-card-name {
    color: white;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.screenshot-card-roles {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.card-role-icon {
    font-size: 14px;
}

/* Footer */
.screenshot-square-footer {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 20px;
    text-align: center;
    border-top: 4px solid #60a5fa;
}

.footer-text {
    color: white;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 3px;
}

/* Actions */
.capture-actions-square {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-download-square,
.btn-close-square {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download-square {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-download-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-close-square {
    background: #1a1f3a;
    color: white;
    border: 2px solid #3b82f6;
}

.btn-close-square:hover {
    background: #2c3454;
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-square {
        max-width: 95vmin;
        max-height: 95vmin;
    }
    
    .header-title {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .screenshot-card {
        width: 90px;
    }
    
    .screenshot-card-top {
        height: 100px;
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .lineup-grid {
        grid-template-columns: 260px 1fr 280px;
    }
}

@media (max-width: 1200px) {
    .lineup-grid {
        grid-template-columns: 1fr;
    }
    
    .player-pool {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .lineup-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .lineup-header h1 {
        font-size: 24px;
    }
    
    .football-pitch {
        min-height: 500px;
        padding: 20px 15px;
    }
    
    .player-slot {
        width: 70px;
        min-height: 90px;
    }
    
    .player-item img {
        width: 50px;
        height: 50px;
    }
}