/* ==========================================
   TradePanini - Premium Stylesheet (Vanilla CSS)
   ========================================== */

/* Design Tokens & Theme Variables */
:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Sleek Dark Palette */
    --bg-dark: #070913;
    --bg-panel: rgba(17, 22, 43, 0.7);
    --bg-panel-hover: rgba(25, 31, 58, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Vibrant Colors */
    --primary: #ff3366; /* Vibrant Neon Red/Pink */
    --primary-hover: #e02251;
    --secondary: #ffb007; /* Golden Trophy Yellow */
    --accent: #ffb007;
    --success: #00e676; /* Emerald Green */
    --warning: #ff9100; /* Warm Orange */
    --info: #00b0ff; /* Electric Blue */
    
    /* Text Colors */
    --text-main: #f0f2f8;
    --text-muted: #8b96b3;
    --text-on-primary: #ffffff;
    
    /* Glows & Shadow */
    --glow-primary: rgba(255, 51, 102, 0.3);
    --glow-success: rgba(0, 230, 118, 0.25);
    --glow-warning: rgba(255, 145, 0, 0.25);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Transition standard */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets & Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Glow Blobs */
.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.glow-1 {
    background: var(--primary);
    top: 10%;
    left: -100px;
}

.glow-2 {
    background: #4a00e0;
    bottom: 15%;
    right: -100px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.5em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout Header & Navigation */
.app-header {
    background: rgba(7, 9, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.trophy-icon {
    color: var(--secondary);
    filter: drop-shadow(0 0 8px rgba(255, 176, 7, 0.5));
}

.logo-accent {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.user-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-greeting {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    background: rgba(255, 176, 7, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 176, 7, 0.2);
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow-primary);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}

.btn-success {
    background: var(--success);
    color: #070913;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--glow-success);
}

.btn-success:hover {
    background: #00c853;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: #070913;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--glow-warning);
}

.btn-warning:hover {
    background: #ff7d00;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* App Main Content & Views */
.app-main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.app-view {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.app-view.active-view {
    display: block;
}

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

/* Landing / Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Stats Dashboard Grid */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
}

.stat-icon-wrapper {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Section Containers */
.section-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
}

.text-accent {
    color: var(--secondary);
}

/* Rarity Holographic Cards Grid */
.rarity-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Holographic Star Sticker Card */
.sticker-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sticker-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Shiny Gold Holographic class */
.sticker-card.shiny {
    background: linear-gradient(135deg, rgba(255, 176, 7, 0.08) 0%, rgba(255, 51, 102, 0.08) 100%), var(--bg-panel);
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(255, 176, 7, 0.15);
}

/* Glowing Holographic Shimmer */
.sticker-card.shiny::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.01) 35%,
        rgba(255, 176, 7, 0.25) 50%,
        rgba(255, 51, 102, 0.15) 55%,
        rgba(255,255,255,0) 70%
    );
    transform: rotate(45deg);
    transition: all 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.sticker-card.shiny:hover::before {
    left: 150%;
    top: 150%;
}

.card-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 2px 8px var(--glow-primary);
    z-index: 2;
}

.sticker-card.shiny .card-rank {
    background: var(--secondary);
    color: #070913;
    box-shadow: 0 2px 10px rgba(255, 176, 7, 0.5);
}

.card-flag {
    font-size: 2.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.card-code {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 0.2rem;
}

.card-team {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.card-rarity-badge {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 51, 102, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 51, 102, 0.2);
}

.sticker-card.shiny .card-rarity-badge {
    background: rgba(255, 176, 7, 0.15);
    color: var(--secondary);
    border-color: rgba(255, 176, 7, 0.3);
    box-shadow: 0 0 10px rgba(255, 176, 7, 0.1);
}

/* Authentication forms */
.form-card-container {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.form-card {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
}

.form-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}

.input-with-icon input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group textarea {
    padding: 0.8rem 1rem;
    resize: vertical;
}

.input-with-icon input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
    background: rgba(7, 9, 19, 0.8);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dashboard View Styles */
.dashboard-header-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.user-info-summary h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.user-info-summary p {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Share link panel */
.share-link-card {
    background: rgba(7, 9, 19, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    max-width: 480px;
    width: 100%;
}

.share-link-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.share-link-input-group {
    display: flex;
    gap: 0.5rem;
}

.share-link-input-group input {
    flex: 1;
    background: rgba(7, 9, 19, 0.7);
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-family: monospace;
}

.share-link-input-group input:focus {
    outline: none;
}

/* Inventory Stats Grid */
.inventory-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.inv-stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.inv-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.inv-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-have { background: var(--success); }
.fill-repeated { background: var(--warning); }
.fill-missing { background: var(--info); }

.inv-percentage-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-have { border-left: 4px solid var(--success); }
.card-have i { color: var(--success); }
.card-repeated { border-left: 4px solid var(--warning); }
.card-repeated i { color: var(--warning); }
.card-missing { border-left: 4px solid var(--info); }
.card-missing i { color: var(--info); }

/* Management tools */
.management-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.tool-panel h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.tool-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.tool-actions {
    display: flex;
    gap: 0.75rem;
}

.tool-actions button {
    flex: 1;
}

/* OCR Upload Area */
.ocr-dropzone {
    background: rgba(7, 9, 19, 0.4);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.ocr-dropzone:hover {
    border-color: var(--primary);
    background: rgba(255, 51, 102, 0.02);
}

.hidden-file-input {
    display: none;
}

.dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cloud-icon {
    font-size: 2.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.ocr-dropzone:hover .cloud-icon {
    color: var(--primary);
    transform: translateY(-3px);
}

.dropzone-prompt p {
    font-size: 0.95rem;
    color: #ffffff;
}

.dropzone-prompt p span {
    color: var(--primary);
    text-decoration: underline;
}

.file-limits {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Scanner Animation overlay */
.ocr-scanning-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.scanner-grid {
    position: relative;
    width: 100%;
    height: 100px;
    border: 1px solid rgba(255, 51, 102, 0.2);
    background: linear-gradient(180deg, rgba(255, 51, 102, 0.03) 0%, rgba(255, 51, 102, 0.06) 100%);
    border-radius: 6px;
    overflow: hidden;
}

.scanning-laser {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 10px var(--primary);
    animation: laserScan 2.5s ease-in-out infinite;
}

@keyframes laserScan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scanning-text {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Detected stickers check list */
.ocr-results-panel {
    margin-top: 1.25rem;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.results-header {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detected-stickers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 160px;
    overflow-y: auto;
    padding: 0.2rem;
}

.detected-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.detected-chip i {
    color: var(--success);
}

.results-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Filter bar */
.filter-bar {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 51, 102, 0.15);
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select-wrapper {
    position: relative;
}

.filter-options select {
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.6rem 2rem 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: var(--transition);
}

.filter-options select:focus {
    border-color: var(--primary);
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Visual Checklist Groups */
.country-group {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.country-group:hover {
    border-color: var(--border-hover);
}

.country-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.country-title-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag-icon {
    font-size: 1.75rem;
}

.country-name-txt {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    font-family: var(--font-heading);
}

.country-code-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    border: 1px solid var(--border-color);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(0,0,0,0.2);
}

.country-progress-badge {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
    background: rgba(0, 230, 118, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 230, 118, 0.15);
}

.country-body {
    padding: 1.25rem 1.5rem;
}

/* Grid of mini sticker items */
.stickers-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

/* Mini Sticker Item (Tri-state Button) */
.sticker-item {
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticker-item:hover {
    transform: translateY(-2px);
    background: rgba(7, 9, 19, 0.8);
    border-color: rgba(255,255,255,0.2);
}

.sticker-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.2;
}

.sticker-sub-code {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.sticker-status-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.4;
}

/* Tri-state Styling */

/* State 1: HAVE (Tenho) */
.sticker-item.state-tenho {
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid var(--success);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}
.sticker-item.state-tenho .sticker-num {
    color: var(--success);
}
.sticker-item.state-tenho .sticker-status-icon {
    color: var(--success);
    opacity: 1;
}

/* State 2: REPEATED (Repetida) */
.sticker-item.state-repetida {
    background: rgba(255, 145, 0, 0.05);
    border: 1px solid var(--warning);
    box-shadow: 0 0 10px rgba(255, 145, 0, 0.1);
}
.sticker-item.state-repetida .sticker-num {
    color: var(--warning);
}
.sticker-item.state-repetida .sticker-status-icon {
    color: var(--warning);
    opacity: 1;
}

/* State 3: MISSING (Faltante) */
.sticker-item.state-faltante {
    /* Back to default state */
}

/* Interactive Popover menu on click to select state */
.sticker-item-active {
    outline: 2px solid var(--primary);
}

/* Share View Profile */
.share-profile-header {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-user-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #4a00e0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.share-actions-bar {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Share Tabs Navigation */
.share-tabs-container {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-button:hover {
    color: #ffffff;
}

.tab-button.active {
    color: var(--primary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 8px var(--glow-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-intro-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Read-only lists grouped on share page */
.share-stickers-grouped {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.share-country-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

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

.share-country-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.share-country-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.share-badge-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
}

.share-stickers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-sticker-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.share-sticker-badge.shiny-gold {
    background: rgba(255, 176, 7, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Call to action boxes */
.footer-cta-box {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(74, 0, 224, 0.1) 100%), var(--bg-panel);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-cta-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Toast Notifications styling */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out forwards;
    pointer-events: auto;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-info { border-left-color: var(--info); }

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer layout */
.app-footer-bar {
    background: rgba(7, 9, 19, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-subtext {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.text-accent {
    color: var(--primary);
}

/* Utilities */
.hidden {
    display: none !important;
}

.loading-spinner {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .app-main-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .management-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .select-wrapper select {
        width: 100%;
    }
    
    .share-actions-bar {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
}

/* Quantity Selector Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 5, 11, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    padding: 1.75rem;
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header h3 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin: 0;
    color: #ffffff;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.btn-close-modal:hover {
    color: var(--primary);
}

.modal-body {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.modal-body strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.modal-footer button {
    flex: 1;
}

/* Badge for showing repeated counts in checklist grid */
.sticker-item .sticker-qty-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning);
    color: #070913;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 10px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--bg-panel);
    z-index: 10;
}

@keyframes scaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Country Accordion Header Actions */
.country-progress-area {
    display: flex;
    align-items: center;
}

.country-actions-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.25rem;
}

.btn-country-action {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-country-action:hover {
    border-color: var(--success);
    color: #ffffff;
    background: rgba(0, 230, 118, 0.08);
}

.btn-country-action.action-unmark:hover {
    border-color: var(--primary);
    color: #ffffff;
    background: rgba(255, 51, 102, 0.08);
}

@media (max-width: 576px) {
    .country-actions-group {
        margin-right: 0.5rem;
        gap: 0.2rem;
    }
    .btn-country-action {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
    .btn-country-action span {
        display: none; /* Hide text on small screens, keep icons */
    }
}

.btn-remove {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-remove:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--glow-primary);
    transform: translateY(-1px);
}

/* Admin Panel Styles */
.admin-table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.admin-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.015);
}

.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

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

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-admin {
    background: rgba(255, 183, 3, 0.15);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.3);
}

.badge-banned {
    background: rgba(239, 35, 60, 0.15);
    color: #ef233c;
    border: 1px solid rgba(239, 35, 60, 0.3);
}

.badge-user {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-active {
    background: rgba(56, 176, 0, 0.15);
    color: #38b000;
    border: 1px solid rgba(56, 176, 0, 0.3);
}

/* Region ranking list styling */
.region-ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

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

.region-ranking-item .region-rank-badge {
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.8rem;
}

.region-ranking-item:nth-child(1) .region-rank-badge {
    background: #ffb703; /* Gold */
    color: #070913;
}
.region-ranking-item:nth-child(2) .region-rank-badge {
    background: #e2e2e2; /* Silver */
    color: #070913;
}
.region-ranking-item:nth-child(3) .region-rank-badge {
    background: #cd7f32; /* Bronze */
}

/* Chart container size fix */
#regionChart {
    max-height: 250px !important;
}

.admin-only.hidden {
    display: none !important;
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .dashboard-header-panel {
        flex-direction: column;
        text-align: center;
    }
    .share-link-card {
        max-width: 100%;
    }
    .management-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-grid-layout {
        grid-template-columns: 1fr !important;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .stats-overview-grid, .inventory-stats-grid, .rarity-cards-grid {
        grid-template-columns: 1fr;
    }
    .country-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .country-progress-area {
        width: 100%;
        justify-content: space-between;
    }
    .country-actions-group {
        flex-wrap: wrap;
    }
    .stickers-checklist-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    .user-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    .form-card {
        padding: 1.5rem;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .toast-container {
        width: 90%;
        left: 5%;
        right: 5%;
        bottom: 20px;
    }
    .admin-stats-overview {
        grid-template-columns: 1fr;
    }
    .table-container {
        overflow-x: auto;
    }
    .app-main-content {
        padding: 1rem;
    }
    .logo-area {
        font-size: 1.25rem;
    }
    .share-link-input-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    .tool-actions, .results-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .tool-actions button, .results-actions button {
        width: 100%;
    }
}
