:root {
    --primary-color: #25d366;
    --secondary-color: #128c7e;
    --bg-light: #f0f2f5;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
}

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.group-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

@media (min-width: 769px) {
    .group-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
    .group-card:hover .group-img {
        transform: scale(1.1);
    }
}

.group-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.group-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.group-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #128c7e;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-custom {
    background: linear-gradient(45deg, #25d366, #128c7e);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background: linear-gradient(45deg, #128c7e, #075e54);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .display-5 { font-size: 1.8rem; }
    .card-body { padding: 1rem; }
    .group-img-container { height: 160px; }
    .group-card:hover { transform: none; box-shadow: var(--card-shadow); }
    .group-card:hover .group-img { transform: none; }
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}
.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dark Mode Styles with Starry Universe Effect */
body.dark-mode {
    background-color: #020617;
    color: #f1f5f9;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars-twinkle 10s infinite linear;
    position: relative;
    overflow-x: hidden;
}

/* Shooting Star Animation */
body.dark-mode::before {
    content: "";
    position: fixed;
    top: -10%;
    left: -10%;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: shooting-star 8s linear infinite;
    z-index: -1;
}

body.dark-mode::after {
    content: "";
    position: fixed;
    top: 20%;
    left: -10%;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: shooting-star 12s linear infinite;
    animation-delay: 4s;
    z-index: -1;
}

@keyframes shooting-star {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

@keyframes stars-twinkle {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

body.dark-mode .navbar {
    background-color: rgba(2, 6, 23, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar-brand {
    color: #22c55e !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

body.dark-mode .nav-link {
    color: #94a3b8 !important;
}

body.dark-mode .nav-link:hover, 
body.dark-mode .nav-link.active {
    color: #22c55e !important;
}

body.dark-mode header h1 {
    color: #f8fafc;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

body.dark-mode .group-card {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .group-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .group-card h5 {
    color: #f8fafc;
}

body.dark-mode .group-card .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .btn-light {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

body.dark-mode .btn-light:hover {
    background-color: #334155;
}

body.dark-mode .category-badge {
    background: rgba(15, 23, 42, 0.9);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

body.dark-mode #dark-mode-toggle {
    color: #facc15 !important;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

body.dark-mode footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .bg-light {
    background-color: rgba(30, 41, 59, 0.4) !important;
}

body.dark-mode .card {
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-content {
    background-color: #0f172a;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .form-control:focus {
    background-color: #1e293b;
    border-color: #22c55e;
}

body.dark-mode .text-dark {
    color: #f1f5f9 !important;
}

body.dark-mode .bg-white {
    background-color: #1e293b !important;
}

body.dark-mode .table {
    color: #f1f5f9;
}

body.dark-mode .table thead {
    background-color: #0f172a !important;
}

body.dark-mode .sticker-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ferramentas Dark Mode Fixes */
body.dark-mode .hero-section {
    background: #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .bot-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .step-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: #22c55e;
    color: #f1f5f9;
}

body.dark-mode .pricing-value {
    color: #22c55e;
}

body.dark-mode .bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.1) !important;
}

body.dark-mode .text-success {
    color: #22c55e !important;
}

body.dark-mode .navbar-dark.bg-transparent {
    background-color: rgba(2, 6, 23, 0.8) !important;
    backdrop-filter: blur(12px);
}

body.dark-mode .bg-light.border-bottom {
    background-color: #0f172a !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .preview-sticker {
    background-color: #1e293b;
    border-color: #22c55e;
}

body.dark-mode .img-container {
    background-color: #020617;
}

body.dark-mode .editor-p-3.bg-white {
    background-color: #0f172a !important;
}

body.dark-mode .modal-header.bg-success {
    background-color: #128c7e !important;
}

body.dark-mode .modal-footer.bg-light {
    background-color: #0f172a !important;
}

body.dark-mode .plan-option.active,
body.dark-mode .pack-option.active {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: #22c55e !important;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.sticker-item {
    background: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.sticker-item:hover {
    transform: scale(1.05);
}

.sticker-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.bot-card {
    border-radius: 20px;
    border: 1px solid #eee;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}
