:root {
    --tt-primary: #2563eb;
    --tt-secondary: #0f172a;
    --tt-fb: #1877F2;
    --tt-yt: #FF0000;
    --tt-glass: rgba(255, 255, 255, 0.7);
    --tt-glass-border: rgba(255, 255, 255, 0.3);
    --tt-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    background: #f0f2f5;
    font-family: 'Inter', sans-serif;
}

/* Premium Card Styling */
.tt-card {
    background: var(--tt-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--tt-glass-border);
    border-radius: 16px;
    box-shadow: var(--tt-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
}

.tt-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

/* Hero Section */
.tt-hero {
    background: linear-gradient(135deg, var(--tt-primary), var(--tt-secondary));
    color: #fff;
    padding: 100px 40px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tt-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* SMM Panel Table */
.tt-smm-table-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--tt-shadow);
}

.tt-smm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.tt-smm-table tr {
    background: #fdfdfd;
    transition: background 0.3s ease;
}

.tt-smm-table tr:hover {
    background: #f5f5f5;
}

.tt-smm-table td, .tt-smm-table th {
    padding: 20px;
    border: none;
}

.tt-smm-table th {
    background: #333;
    color: #fff;
    font-weight: 600;
}

.tt-smm-table tr td:first-child { border-radius: 12px 0 0 12px; }
.tt-smm-table tr td:last-child { border-radius: 0 12px 12px 0; }

/* Buttons */
.tt-btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.tt-btn-primary {
    background: var(--tt-primary);
    color: #fff;
}

.tt-btn-primary:hover {
    background: var(--tt-secondary);
    transform: scale(1.05);
}

/* Rating Badges */
.tt-rating-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--tt-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Pros & Cons */
.tt-pros-list li::before { content: '✓'; color: #4CAF50; margin-right: 10px; font-weight: bold; }
.tt-cons-list li::before { content: '✕'; color: #F44336; margin-right: 10px; font-weight: bold; }

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tt-animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Selectable Cards for SMM */
.tt-selectable-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.tt-selectable-card:hover {
    border-color: var(--tt-primary);
    background: #fdfdfd;
}

.tt-selectable-card.active {
    border-color: var(--tt-primary);
    background: #f0f7ff;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.1);
}

.tt-check-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--tt-primary);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
}

.tt-selectable-card.active .tt-check-icon {
    display: flex;
}

/* Sticky Sidebar */
.tt-sticky-sidebar {
    position: sticky;
    top: 30px;
}

/* Order Form Steps */
.tt-order-form-step {
    border-left: 3px solid #eee;
    padding-left: 20px;
}

/* Pricing Grid Enhancements */
.tt-popular {
    border: 3px solid var(--tt-primary) !important;
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 992px) {
    .tt-boosting-container {
        grid-template-columns: 1fr !important;
    }
    
    .tt-sticky-sidebar {
        position: static !important;
        margin-top: 30px;
    }

    .tt-hero h1 {
        font-size: 2.5rem;
    }
    
    .tt-panel-stats {
        grid-template-columns: 1fr !important;
        flex-basis: auto !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .tt-pricing-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tt-card {
        padding: 25px !important;
    }
    
    .tt-smm-table {
        display: block;
        overflow-x: auto;
    }
    
    .tt-service-selector {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .tt-hero h1 {
        font-size: 2rem;
    }
    
    .tt-service-selector {
        grid-template-columns: 1fr !important;
    }
    
    .tt-selectable-card {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* SMM Panel Dashboard */
.tt-panel-stats {
    perspective: 1000px;
}

.tt-panel-stats .tt-card {
    transition: transform 0.5s ease;
}

.tt-panel-stats .tt-card:hover {
    transform: translateZ(20px);
}

.tt-platform-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #eee;
    color: #666;
}

/* Glassmorphism Header */
.tt-hero {
    background-attachment: fixed !important;
    position: relative;
    overflow: hidden;
}

.tt-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #f0f2f5, transparent);
}

/* Master Table Styling */
#tt_smm_master_table {
    border-radius: 12px;
    overflow: hidden;
}

#tt_smm_master_table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
}

.tt-smm-row:last-child td {
    border-bottom: none;
}

/* Platform Specific Colors */
[data-platform="facebook"] { --platform-color: #1877F2; }
[data-platform="instagram"] { --platform-color: #E4405F; }
[data-platform="youtube"] { --platform-color: #FF0000; }
[data-platform="tiktok"] { --platform-color: #000000; }
[data-platform="twitter"] { --platform-color: #1DA1F2; }

.tt-tab-btn[data-platform="facebook"]:hover { color: #1877F2; border-color: #1877F2; }
.tt-tab-btn[data-platform="instagram"]:hover { color: #E4405F; border-color: #E4405F; }
.tt-tab-btn[data-platform="youtube"]:hover { color: #FF0000; border-color: #FF0000; }

/* Premium Boosting Modal Styles */
.tt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tt-modal-container {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 30px;
    box-sizing: border-box;
}

.tt-modal-overlay.active .tt-modal-container {
    transform: translateY(0);
}

.tt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tt-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.tt-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.tt-modal-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(var(--brand-color-rgb, 37, 99, 235), 0.1);
    color: var(--brand-color, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.tt-modal-header-text {
    flex-grow: 1;
}

.tt-modal-platform-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--brand-color-rgb, 37, 99, 235), 0.1);
    color: var(--brand-color, #2563eb);
}

/* Modal Quantity Tier Cards */
.tt-modal-tier-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.tt-modal-tier-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.tt-modal-tier-card.active {
    border-color: var(--brand-color, #2563eb);
    background: rgba(var(--brand-color-rgb, 37, 99, 235), 0.02);
    box-shadow: 0 4px 12px rgba(var(--brand-color-rgb, 37, 99, 235), 0.08);
}

.tt-modal-tier-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tt-modal-tier-qty {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.tt-modal-tier-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-color, #2563eb);
}

.tt-modal-tier-original-price {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: #94a3b8;
    margin-right: 4px;
}

.tt-modal-tier-card.active .tt-modal-tier-qty {
    color: var(--brand-color, #2563eb);
}

.tt-modal-tier-card .tt-check-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--brand-color, #2563eb);
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tt-modal-tier-card.active .tt-check-badge {
    display: flex;
}

/* Form controls styling */
#tt-modal-target-url:focus {
    border-color: var(--brand-color, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(var(--brand-color-rgb, 37, 99, 235), 0.15);
}

/* SMM Panel Interface Styling */
.tt-tab-btn { 
    padding: 12px 24px; 
    border: 1px solid #eee; 
    background: #fff; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 700; 
    font-size: 0.95rem;
    color: #444;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.tt-tab-btn i { font-size: 1.1rem; }
.tt-tab-btn:hover { border-color: var(--tt-primary); transform: translateY(-2px); }
.tt-tab-btn.active { 
    background: var(--brand-color, #333); 
    color: #fff; 
    border-color: var(--brand-color, #333); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.tt-view-btn { padding: 12px 18px; border: 1px solid #eee; background: #fff; border-radius: 12px; cursor: pointer; transition: all 0.3s; font-size: 1.1rem; }
.tt-view-btn.active { background: #333; color: #fff; border-color: #333; }
.tt-cat-btn { padding: 8px 16px; border: 1px solid #f0f0f0; background: #f9f9f9; border-radius: 50px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.3s; color: #777; white-space: nowrap; }
.tt-cat-btn.active { background: #333; color: #fff; border-color: #333; }
.tt-service-card .tt-card:hover { border-color: var(--tt-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-5px); }
.tt-platform-badge[data-platform="facebook"] { background: rgba(24, 119, 242, 0.1); color: #1877F2; }
.tt-platform-badge[data-platform="instagram"] { background: rgba(228, 64, 95, 0.1); color: #E4405F; }
.tt-platform-badge[data-platform="youtube"] { background: rgba(255, 0, 0, 0.1); color: #FF0000; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .tt-hero { padding: 60px 0 100px !important; }
    .tt-hero h1 { font-size: 2.5rem !important; }
    .tt-hero > div > div { flex-direction: column; text-align: center; }
    .tt-panel-stats { flex: 1 1 100% !important; margin-top: 30px; grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 768px) {
    .tt-hero h1 { font-size: 2rem !important; }
    .tt-panel-stats { grid-template-columns: 1fr !important; }
    .tt-card.tt-animate { padding: 15px !important; margin: 0 !important; width: 100% !important; box-sizing: border-box; overflow: hidden; }
    .tt-service-card .tt-card { padding: 15px !important; }
    .tt-hero { padding: 40px 15px 80px !important; }
    
    .tt-platform-tabs, .tt-category-tabs { 
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        margin-bottom: 15px !important;
    }
    
    .tt-tab-btn { padding: 10px 18px; font-size: 0.85rem; flex: 0 0 auto; }
    .tt-cat-btn { padding: 6px 14px; font-size: 0.75rem; flex: 0 0 auto; }
    
    #tt_service_search { padding: 10px 15px 10px 35px !important; font-size: 0.8rem !important; }
    .tt-search-container { max-width: 100% !important; flex-basis: 100%; order: 1; margin-bottom: 10px; }
    .tt-category-tabs { order: 2; }
    
    .tt-service-grid { grid-template-columns: 1fr !important; gap: 15px !important; padding: 0 !important; }
    
    /* Fix internal card layout for mobile */
    .tt-service-card .tt-card > div:last-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .tt-service-card .tt-card > div:last-child .tt-btn {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box;
    }
    
    .tt-view-btn { display: none; }
}

@media (max-width: 480px) {
    .tt-hero h1 { font-size: 1.8rem !important; }
    .tt-card { padding: 20px !important; }
}

/* Floating Icons Animation */
@keyframes ttFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 15px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.tt-float {
    animation: ttFloat var(--float-duration) ease-in-out var(--float-delay) infinite;
    filter: blur(1px);
    transition: all 0.5s ease;
}
.tt-float:hover {
    color: rgba(255, 255, 255, 0.5) !important;
    filter: blur(0);
    transform: scale(1.2) !important;
}
