/* ============================================
   TAHIR SAIN PORTFOLIO - MAIN STYLESHEET
   ============================================ */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --dark: #0a0a1a;
    --dark-light: #12122a;
    --dark-card: #1a1a3e;
    --dark-border: #2d2d5e;
    --text-light: #e0e0ff;
    --text-muted: #9999bb;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-2: linear-gradient(135deg, #00cec9, #55efc4);
    --gradient-3: linear-gradient(135deg, #fd79a8, #e84393);
    --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #12122a 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ============================================
   LOADER
   ============================================ */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-circle {
    width: 60px; height: 60px;
    border: 4px solid var(--dark-border);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   NAVBAR
   ============================================ */
#mainNav {
    background: transparent;
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.4rem !important;
}

.brand-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.6rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    font-size: 0.95rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.btn-primary-gradient {
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    color: #fff;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(108,92,231,0.15), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,206,201,0.1), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(5deg); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(108,92,231,0.15);
    border: 1px solid rgba(108,92,231,0.3);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typed-text {
    color: var(--secondary);
    border-right: 3px solid var(--secondary);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 12px;
    margin-bottom: 10px;
}

.btn-gradient {
    background: var(--gradient-1);
    color: #fff;
    border: none;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108,92,231,0.4);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid var(--dark-border);
    color: var(--text-light);
    background: transparent;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    width: 380px; height: 380px;
    margin: 0 auto;
}

.hero-image-wrapper .image-ring {
    position: absolute;
    top: -10px; left: -10px;
    right: -10px; bottom: -10px;
    border: 3px solid transparent;
    border-image: var(--gradient-1);
    border-image-slice: 1;
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.hero-image-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #fff;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
}

.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.hero-stat p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--dark-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CARDS
   ============================================ */
.glass-card {
    background: rgba(26, 26, 62, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108,92,231,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image-container {
    position: relative;
}

.about-image-box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.about-image-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.3;
    z-index: 1;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.about-image-placeholder {
    width: 100%; height: 100%;
    background: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
}

.about-decoration {
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-info-item .icon {
    width: 40px; height: 40px;
    background: rgba(108,92,231,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.about-info-item .info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.about-info-item .info-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.about-counters {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.counter-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--dark-border);
    min-width: 120px;
    transition: var(--transition);
}

.counter-box:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.counter-box h3 {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.counter-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skill-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: rgba(108,92,231,0.4);
    transform: translateY(-3px);
}

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

.skill-name {
    font-weight: 600;
    font-size: 1rem;
}

.skill-percent {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: var(--dark-light);
    border-radius: 50px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 50px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.skill-category-title i {
    margin-right: 8px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--dark-border);
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
}

.project-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108,92,231,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.project-image {
    height: 220px;
    background: var(--dark-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

.project-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,26,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay a {
    width: 45px; height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-overlay a {
    transform: translateY(0);
}

.project-body {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    background: rgba(108,92,231,0.15);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

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

.contact-icon {
    width: 60px; height: 60px;
    background: rgba(108,92,231,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.contact-info-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-form .form-control,
.contact-form .form-select {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
    background: var(--dark-card);
    color: var(--text-light);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
    background: var(--dark-light);
    padding: 60px 0 30px;
    border-top: 1px solid var(--dark-border);
}

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

.social-links a {
    width: 40px; height: 40px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(108,92,231,0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: #fff;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 2rem;
}

.auth-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow);
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.auth-card .auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-card .form-control {
    background: var(--dark-light);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
    background: var(--dark-light);
    color: var(--text-light);
}

.auth-card .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.auth-card .btn-gradient {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

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

.auth-card .auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-card .auth-footer a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert-danger {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.auth-alert-success {
    background: rgba(0, 206, 201, 0.15);
    border: 1px solid rgba(0, 206, 201, 0.3);
    color: var(--secondary);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 260px;
    background: var(--dark-light);
    border-right: 1px solid var(--dark-border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 10px;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    text-align: center;
}

.sidebar-brand h4 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

.sidebar-brand small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

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

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(108,92,231,0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
}

.sidebar-divider-item {
    margin-bottom: 0 !important;
    padding: 0;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--dark-border);
    margin: 0.8rem 1.5rem;
}

.dashboard-main {
    margin-left: 260px;
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(108,92,231,0.4);
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: var(--dark-light);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--dark-border);
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(108,92,231,0.05);
}

.badge-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active { background: rgba(0,206,201,0.15); color: var(--secondary); }
.badge-pending { background: rgba(255,193,7,0.15); color: #ffc107; }
.badge-approved { background: rgba(0,206,201,0.15); color: var(--secondary); }
.badge-rejected { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-suspended { background: rgba(255,193,7,0.15); color: #ffc107; }
.badge-blocked { background: rgba(231,76,60,0.15); color: #e74c3c; }

.action-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--dark-border);
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    margin: 0 2px;
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.action-btn.danger:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* ============================================
   PLANS SECTION (Public)
   ============================================ */
.plan-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card.featured {
    border-color: var(--primary);
}

.plan-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: 20px; right: -30px;
    background: var(--gradient-1);
    color: #fff;
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(108,92,231,0.2);
}

.plan-card .plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-card .plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.plan-card .plan-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-card .plan-features li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--dark-border);
}

.plan-card .plan-features li i {
    color: var(--secondary);
    margin-right: 8px;
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(108,92,231,0.1), transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
}

/* ============================================
   TOAST / ALERTS
   ============================================ */
.toast-custom {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

/* ============================================
   FORM STYLES (Dashboard)
   ============================================ */
.dash-form .form-control,
.dash-form .form-select {
    background: var(--dark-light);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dash-form .form-control:focus,
.dash-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
    background: var(--dark-light);
    color: var(--text-light);
}

.dash-form .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   MOBILE SIDEBAR TOGGLE
   ============================================ */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px; left: 15px;
    width: 45px; height: 45px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    z-index: 200;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.8rem; }
    .hero-image-wrapper { width: 280px; height: 280px; }
    .hero-stats { gap: 20px; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { flex-wrap: wrap; gap: 15px; }
    .hero-image-wrapper { width: 220px; height: 220px; margin-bottom: 2rem; }
    .about-info-grid { grid-template-columns: 1fr; }
    .about-counters { flex-wrap: wrap; justify-content: center; }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        z-index: 150;
        box-shadow: none;
    }
    .dashboard-sidebar.active {
        transform: translateX(0);
        box-shadow: 5px 0 30px rgba(0,0,0,0.5);
    }
    .dashboard-main {
        margin-left: 0;
        padding-top: 4rem;
    }
    .sidebar-toggle {
        display: flex;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .dashboard-sidebar {
        width: 220px;
    }
    .dashboard-main {
        margin-left: 220px;
    }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.8rem; }
    .hero-description { font-size: 1rem; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.7rem; }
    .auth-card { padding: 2rem 1.5rem; }
    .dashboard-main { padding: 1rem; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary { background: var(--gradient-1); }
.bg-gradient-secondary { background: var(--gradient-2); }
.bg-gradient-accent { background: var(--gradient-3); }

.icon-box {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-box-primary { background: rgba(108,92,231,0.15); color: var(--primary); }
.icon-box-secondary { background: rgba(0,206,201,0.15); color: var(--secondary); }
.icon-box-accent { background: rgba(253,121,168,0.15); color: var(--accent); }
.icon-box-warning { background: rgba(255,193,7,0.15); color: #ffc107; }

.card-dark {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}
