:root {
    --bg-color: #050507;
    --surface-color: #0e0e12;
    --surface-hover: #16161f;
    --primary-color: #00ff88;
    --secondary-color: #00d4ff;
    --text-color: #e0e0e0;
    --text-muted: #a0a0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

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

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 6rem 0;
}

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

.section-header.center {
    text-align: center;
}

.section-tag {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

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

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

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.tech-graphic {
    position: relative;
    width: 400px;
    height: 400px;
}

.tech-graphic .circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-graphic .c1 {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
    border-top-color: var(--secondary-color);
}

.tech-graphic .c2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation: rotate-rev 15s linear infinite;
    border-bottom-color: var(--primary-color);
}

.card-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 180px;
    background: rgba(22, 22, 31, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 15px;
    animation: float 6s ease-in-out infinite;
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-body .chart-line {
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-bottom: 15px;
    width: 60%;
}

.mockup-body .chart-bar {
    height: 8px;
    background: var(--gradient-main);
    border-radius: 4px;
    margin-bottom: 10px;
    width: 80%;
}

.mockup-body .chart-bar.small {
    width: 50%;
    background: #333;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-rev {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes float {

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

    50% {
        transform: translate(-50%, -60%);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: var(--text-muted);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.stats-grid .stat-item {
    background: var(--surface-color);
    padding: 2rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stats-grid .stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stat-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.05), transparent);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.portfolio-item {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
}

.portfolio-image {
    flex: 1.2;
}

.browser-mockup {
    background: #1e1e24;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: var(--transition);
}

.browser-bar {
    background: #2b2b36;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.browser-bar .dots {
    display: flex;
    gap: 6px;
}

.browser-bar .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
}

.url-bar {
    background: #16161f;
    flex: 1;
    border-radius: 4px;
    height: 20px;
    font-size: 10px;
    color: #555;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-family: monospace;
}

.browser-content {
    background: #111;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.browser-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.preview-hero {
    height: 60%;
    background: radial-gradient(circle at center, #2a2a2a, #111);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.preview-hero h3 {
    font-family: 'Pacifico', cursive;
    margin-bottom: 10px;
    font-weight: normal;
}

.preview-btn {
    background: tomato;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.preview-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 20px;
    background: #fff;
}

.preview-grid div {
    background: #eee;
    border-radius: 4px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.browser-mockup:hover .overlay {
    opacity: 1;
}

.portfolio-info {
    flex: 1;
}

.portfolio-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-desc {
    margin-bottom: 1.5rem;
}

.project-features {
    margin-bottom: 2rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.project-features i {
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.coming-soon {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}

.coming-soon i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
}

.info-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.info-item a,
.info-item span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
}

.contact-form {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #050507;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

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

.footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 1rem auto 0;
}

.footer-links ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-legal {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-legal p {
    font-size: 0.85rem;
    color: #555;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .portfolio-item {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #050507;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Dashboard & Login Styles --- */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
}

.auth-box {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-box h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.dashboard-section {
    padding: 100px 0 50px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.stat-card.profit .value {
    color: var(--primary-color);
}

.stat-card.cost .value {
    color: #ff5f56;
}

.clients-table-container {
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    padding: 1rem;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.clients-table th,
.clients-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clients-table th {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 500;
}

.client-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.add-client-btn {
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

/* Client Area Specific */
.plan-details {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gradient-main);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-family: var(--font-heading);
}

.plan-info {
    margin-bottom: 1.5rem;
}

.plan-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.plan-features ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.plan-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.upgrade-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.upgrade-card {
    background: var(--surface-hover);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.upgrade-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.upgrade-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.upgrade-card.premium h4 {
    color: #ffbd2e;
    /* Gold-ish */
}


/* --- Dashboard & Login Styles --- */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
}

.auth-box {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-box h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.dashboard-section {
    padding: 100px 0 50px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.stat-card.profit .value {
    color: var(--primary-color);
}

.stat-card.cost .value {
    color: #ff5f56;
}

.clients-table-container {
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    padding: 1rem;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.clients-table th,
.clients-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clients-table th {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 500;
}

.client-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.add-client-btn {
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface-color);
    margin: 5% auto;
    /* Reduced margin */
    padding: 2rem;
    border: 1px solid var(--primary-color);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    animation: modalFadeIn 0.3s;
    max-height: 90vh;
    /* Max height to fit within viewport */
    overflow-y: auto;
    /* Enable scrolling if content exceeds height */
}

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

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

/* Client Area Specific */
.plan-details {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--gradient-main);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-family: var(--font-heading);
}

.plan-info {
    margin-bottom: 1.5rem;
}

.plan-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.plan-features ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.plan-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.upgrade-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.upgrade-card {
    background: var(--surface-hover);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.upgrade-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.upgrade-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.upgrade-card.premium h4 {
    color: #ffbd2e;
    /* Gold-ish */
}

/* Plans Section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.plan-card {
    background: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.plan-card.featured {
    border-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.02);
}

.plan-card.featured::after {
    content: 'MAIS POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-family: var(--font-heading);
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.plan-card .price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 0.5rem;
}

.plan-card .price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-card .plan-features-list {
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.plan-card .plan-features-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.plan-card .plan-features-list i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

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