/* ShortLink Pro Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-warning {
    background: var(--gradient-warning);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat center bottom;
    background-size: cover;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control-lg {
    padding: 15px 20px;
    font-size: 1.1rem;
}

/* Input Groups */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Stats */
.stat-item {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background-color: rgba(0,0,0,0.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-item h3 {
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1;
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Remove any unwanted margins */
main {
    margin-bottom: 0 !important;
}

section:last-of-type {
    margin-bottom: 0 !important;
}

/* Dashboard Styles */
.dashboard-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    background: white;
}

.dashboard-card:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.dashboard-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0 !important;
}

.dashboard-card .card-body {
    padding: 2rem;
}

.dashboard-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.dashboard-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-stat .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* URL List */
.url-item {
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.url-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.url-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.url-original {
    color: #6c757d;
    font-size: 0.9rem;
    word-break: break-all;
}

.url-short {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.url-short:hover {
    text-decoration: underline;
}

.url-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.url-stat {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--light-color);
    border-radius: 8px;
    flex: 1;
}

.url-stat .stat-number {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.url-stat .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Analytics Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.analytics-metric {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.analytics-metric .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.analytics-metric .metric-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .url-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-stat .stat-number {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 1.5rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3.justify-content-center.flex-wrap {
        flex-direction: column;
        align-items: center;
    }
    
    .d-flex.gap-3.justify-content-center.flex-wrap .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Additional visual enhancements */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Smooth animations */
.stat-item h3 {
    animation: countUp 2s ease-out;
}

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

/* Enhanced feature cards */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-title {
    color: #2d3748 !important;
    font-size: 1.25rem !important;
}

.card-text {
    color: #4a5568 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #664d03;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

/* Modern Glass Navigation */
.navbar-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1030;
}

.navbar-modern .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-modern .navbar-brand:hover {
    color: #2a5298;
    transform: scale(1.02);
}

.navbar-modern .navbar-brand i {
    font-size: 1.8rem;
    color: #2a5298;
}

.navbar-modern .brand-text {
    font-weight: 700;
}

.navbar-modern .navbar-toggler {
    border: 1px solid rgba(30, 60, 114, 0.2);
    padding: 0.5rem;
}

.navbar-modern .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.1);
}

.navbar-modern .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e3c72' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-modern .nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-modern .nav-link:hover {
    color: #2a5298;
    background: rgba(42, 82, 152, 0.08);
    transform: translateY(-1px);
}

.navbar-modern .nav-link i {
    font-size: 0.9rem;
}

.navbar-modern .nav-link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    margin: 0 0.25rem;
    color: #4a5568;
}

.navbar-modern .nav-link-icon:hover {
    background: rgba(42, 82, 152, 0.08);
    color: #2a5298;
}

.navbar-modern .user-dropdown {
    display: flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    background: rgba(42, 82, 152, 0.08);
    transition: all 0.3s ease;
    color: #2d3748;
}

.navbar-modern .user-dropdown:hover {
    background: rgba(42, 82, 152, 0.15);
    transform: translateY(-1px);
}

.navbar-modern .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
}

.navbar-modern .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1050;
}

.navbar-modern .dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: #2d3748;
}

.navbar-modern .dropdown-item:hover {
    background: rgba(42, 82, 152, 0.08);
    color: #2a5298;
}

.navbar-modern .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}

/* Sticky Navbar - Solid Background */
.navbar-modern.sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Sticky Navbar - Dark Text */
.navbar-modern.sticky .navbar-brand {
    color: #1e3c72;
    text-shadow: none;
}

.navbar-modern.sticky .navbar-brand:hover {
    color: #2a5298;
}

.navbar-modern.sticky .navbar-brand i {
    color: #2a5298;
    filter: none;
}

.navbar-modern.sticky .nav-link {
    color: #4a5568;
}

.navbar-modern.sticky .nav-link:hover {
    color: #2a5298;
    background: rgba(42, 82, 152, 0.08);
}

.navbar-modern.sticky .nav-link-icon {
    color: #4a5568;
}

.navbar-modern.sticky .nav-link-icon:hover {
    color: #2a5298;
    background: rgba(42, 82, 152, 0.08);
}

.navbar-modern.sticky .user-dropdown {
    background: rgba(42, 82, 152, 0.08);
    color: #2d3748;
}

.navbar-modern.sticky .user-dropdown:hover {
    background: rgba(42, 82, 152, 0.15);
}

.navbar-modern.sticky .user-avatar {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
}

.navbar-modern.sticky .navbar-toggler {
    border-color: rgba(30, 60, 114, 0.2);
}

.navbar-modern.sticky .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e3c72' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-modern.sticky .btn-primary-gradient {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.navbar-modern.sticky .btn-primary-gradient:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
    color: white;
}

/* Mobile Navbar */
@media (max-width: 991px) {
    .navbar-modern .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-modern .nav-link {
        margin: 0.25rem 0;
        color: #4a5568;
    }
    
    .navbar-modern .nav-link:hover {
        color: #2a5298;
        background: rgba(42, 82, 152, 0.08);
    }
    
    .navbar-modern .user-dropdown {
        border-radius: 8px;
        margin: 0.25rem 0;
        background: rgba(42, 82, 152, 0.08);
        color: #2d3748;
    }
    
    .navbar-modern .nav-link-icon {
        color: #4a5568;
    }
    
    .btn-primary-gradient {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        background: linear-gradient(135deg, #2a5298, #1e3c72);
        color: white;
    }
    
    .btn-primary-gradient:hover {
        background: linear-gradient(135deg, #1e3c72, #2a5298);
        color: white;
    }
    
    /* Sticky mobile menu */
    .navbar-modern.sticky .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: white !important;
}

/* Utilities */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

.border-radius-xl {
    border-radius: 20px !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced Dashboard Styles */
.dashboard-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.welcome-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
    margin-bottom: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.stat-label {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: white;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    color: white;
}

.btn-action {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.account-info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.account-info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #2d3748;
    font-weight: 500;
}

.modern-table {
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #2d3748;
    padding: 1rem;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.modern-table tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
}

/* Modal improvements */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 20px 20px;
    padding: 1.5rem 2rem;
}

/* Additional spacing improvements */
.container-fluid {
    max-width: 1400px;
}

.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Better button spacing */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Improved card spacing */
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Better table styling */
.table {
    margin-bottom: 0;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.table th {
    padding: 1rem 0.75rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    .table {
        color: #e2e8f0;
    }
    
    .table thead th {
        background-color: #4a5568;
        color: #e2e8f0;
    }
}

/* Body Layout - Sticky Footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Modern Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.footer-brand {
    margin-bottom: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.brand-logo i {
    font-size: 1.8rem;
    color: #3498db;
}

.footer-brand p {
    color: #b8c5d6;
    line-height: 1.7;
    max-width: 300px;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.social-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

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

.footer-title {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #d5dbdb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #3498db;
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(189, 195, 199, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.copyright {
    color: #d5dbdb;
    font-size: 0.9rem;
}

.footer-meta {
    color: #d5dbdb;
    font-size: 0.9rem;
}

.version-badge {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.separator {
    margin: 0 0.5rem;
    color: #7f8c8d;
}

.uptime-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
}

.uptime-status i {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

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

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-modern {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-brand p {
        max-width: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-meta {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .footer-meta .separator {
        display: none;
    }
    
    .footer-meta span {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* ========================================
   MODERN PRICING PAGE STYLES
   ======================================== */

/* Pricing Hero */
.pricing-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0 !important;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.2"/></svg>');
    background-size: cover, cover, 60px 60px;
}

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

.pricing-hero .container {
    position: relative;
    z-index: 1;
}

.pricing-hero h1 {
    color: white;
}

.pricing-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
}

.pricing-hero .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.pricing-hero .bg-primary-soft {
    background: #ffc107;
    color: #1e3c72;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.pricing-hero .text-primary {
    color: #ffc107 !important;
}

/* Pricing Cards Section Background */
.pricing-cards {
    background: #ffffff;
    position: relative;
    padding-top: 3rem !important;
    margin-top: -50px;
}

.pricing-cards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    border-color: rgba(42, 82, 152, 0.3);
}

/* Featured Card */
.pricing-card-featured {
    background: linear-gradient(135deg, #2a5298 0%, #3d6bb3 100%);
    color: white;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(42, 82, 152, 0.35);
}

.pricing-card-featured:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 70px rgba(42, 82, 152, 0.45);
    border-color: rgba(255, 193, 7, 0.5);
}

.pricing-card-featured .pricing-title,
.pricing-card-featured .pricing-description {
    color: rgba(255, 255, 255, 0.9);
}
.pricing-card-featured .price-amount,
.pricing-card-featured .feature-item {
    color: white;
}

.pricing-card-featured .pricing-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffc107;
}

.pricing-card-featured .feature-item i {
    color: #ffc107;
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1e3c72;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    z-index: 1;
}

/* Pricing Icon */
.pricing-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(42, 82, 152, 0.1), rgba(30, 60, 114, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #2a5298;
}

/* Pricing Header */
.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.pricing-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Pricing Price */
.pricing-price {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.pricing-card-featured .pricing-price {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2a5298;
    margin-right: 0.25rem;
}

.pricing-card-featured .price-currency {
    color: white;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e3c72;
    line-height: 1;
}

.pricing-card-featured .price-value {
    color: white;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

.pricing-card-featured .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.price-savings {
    font-size: 0.875rem;
    color: #198754;
    font-weight: 600;
}

.pricing-card-featured .price-savings {
    color: #ffc107;
}

/* Features List */
.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: #4a5568;
}

.feature-item i {
    color: #198754;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pricing-card-featured .feature-item {
    color: rgba(255, 255, 255, 0.95);
}

/* Pricing Action Button */
.pricing-action {
    margin-top: auto;
}

.btn-pricing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #2a5298;
    background: white;
    color: #2a5298;
}

.btn-pricing:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.3);
}

.btn-pricing-featured {
    background: white;
    color: #1e3c72;
    border: 2px solid white;
}

.btn-pricing-featured:hover {
    background: #ffc107;
    color: #1e3c72;
    border-color: #ffc107;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-pricing-current {
    background: #e9ecef;
    color: #6c757d;
    border: 2px solid #e9ecef;
    cursor: not-allowed;
}

.btn-pricing-current:hover {
    background: #e9ecef;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* FAQ Section Background */
.pricing-faq {
    background: #f8f9fa;
    position: relative;
}

/* Modern FAQ Accordion */
.accordion-modern .accordion-item {
    border: none;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-modern .accordion-button {
    background: white;
    color: #1e3c72;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #2a5298;
}

.accordion-modern .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-modern .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a5298'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-modern .accordion-body {
    padding: 1.25rem 1.5rem;
    color: #4a5568;
    line-height: 1.7;
}

/* CTA Section Background */
.pricing-cta {
    background: #ffffff;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 15px 45px rgba(42, 82, 152, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(10deg); opacity: 0.8; }
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #ffc107;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-card .btn-primary {
    background: white;
    color: #1e3c72;
    border: none;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-card .btn-primary:hover {
    background: #ffc107;
    color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-feature i {
    color: #ffc107;
}

/* Responsive Pricing */
@media (max-width: 991px) {
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-8px) scale(1);
    }
}

@media (max-width: 768px) {
    .pricing-hero .display-3 {
        font-size: 2.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================================
   MODERN API DOCUMENTATION STYLES
   ======================================== */

/* API Hero */
.api-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.api-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.15"/></svg>');
    background-size: cover, 60px 60px;
}

.api-hero .container {
    position: relative;
    z-index: 1;
}

.api-hero h1 {
    color: white;
}

.api-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

.bg-developer-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* API Cards */
.api-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.api-card-header {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.api-card-header-primary {
    background: linear-gradient(135deg, #2a5298 0%, #3d6bb3 100%);
    color: white;
}

.api-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.api-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.api-card-subtitle {
    opacity: 0.9;
    margin: 0;
}

.api-card-body {
    padding: 2.5rem;
}

/* API Info Boxes */
.api-info-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.api-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* Code Blocks */
.api-code-inline {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.api-code-inline code {
    color: #2a5298;
    font-weight: 600;
    font-size: 0.95rem;
}

.api-code-block {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.code-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3d3d3d;
}

.code-label {
    color: #ffc107;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-code-copy {
    background: transparent;
    border: 1px solid #4d4d4d;
    color: #a0a0a0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-code-copy:hover {
    background: #3d3d3d;
    color: #ffc107;
    border-color: #ffc107;
}

.api-code-block pre {
    margin: 0;
    padding: 1.25rem;
    background: #1e1e1e;
    overflow-x: auto;
}

.api-code-block code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* API Key Container */
.api-key-container {
    margin-top: 1rem;
}

.api-key-input-group {
    display: flex;
    gap: 0.5rem;
}

.api-key-input-group .form-control {
    background: white;
    border: 2px solid #e9ecef;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
}

.btn-api-key-toggle {
    background: #2a5298;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-api-key-toggle:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}

/* API Login Prompt */
.api-login-prompt {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e9ecef;
}

.api-login-prompt i {
    font-size: 2.5rem;
    color: #6c757d;
}

.api-login-prompt p {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* HTTP Method Badges */
.badge.bg-success {
    background: linear-gradient(135deg, #198754, #157347) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #1e3c72 !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #bb2d3b) !important;
}

/* Responsive API Docs */
@media (max-width: 768px) {
    .api-hero .display-3 {
        font-size: 2rem;
    }
    
    .api-card-body {
        padding: 1.5rem;
    }
    
    .api-info-box {
        padding: 1rem;
    }
}

/* ========================================
   STRIPE SETUP ICON
   ======================================== */

.stripe-setup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #635bff 0%, #7a73ff 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(99, 91, 255, 0.3);
}

.stripe-setup-icon i {
    font-size: 2.5rem;
    color: white;
}

/* ========================================
   MODERN ADMIN PANEL STYLES
   ======================================== */

/* Dashboard Hero Section */
.dashboard-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 !important;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 50%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.15"/></svg>');
    background-size: cover, 60px 60px;
}

.dashboard-hero .container {
    position: relative;
    z-index: 1;
}

.dashboard-hero h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dashboard-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.dashboard-hero .btn-light {
    background: white;
    color: #1e3c72;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dashboard-hero .btn-light:hover {
    background: #f8f9fa;
    color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Hero Gradient (for new pages) */
.hero-gradient {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 3rem 0 !important;
    margin-bottom: 3rem;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 50%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.15"/></svg>');
    background-size: cover, 60px 60px;
}

.hero-gradient .container {
    position: relative;
    z-index: 1;
}

.hero-gradient h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-gradient .lead {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-gradient .text-white {
    color: white !important;
}

.hero-gradient .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix for new page layouts */
.features-page,
.integrations-page,
.help-page,
.contact-page,
.status-page,
.changelog-page,
.legal-page,
.security-page,
.compliance-page,
.about-page,
.careers-page,
.blog-page,
.press-page {
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero-gradient {
        padding: 2rem 0 !important;
        margin-bottom: 2rem;
    }
    
    .hero-gradient .display-2 {
        font-size: 2.5rem !important;
    }
    
    .features-page,
    .integrations-page,
    .help-page,
    .contact-page,
    .status-page,
    .changelog-page,
    .legal-page,
    .security-page,
    .compliance-page,
    .about-page,
    .careers-page,
    .blog-page,
    .press-page {
        padding-top: 1rem !important;
    }
}

/* Admin Hero Section */
.admin-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 !important;
}

.admin-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.15"/></svg>');
    background-size: cover, 60px 60px;
}

.admin-hero .container {
    position: relative;
    z-index: 1;
}

.admin-hero h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.admin-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.admin-hero .btn-light {
    background: white;
    color: #1e3c72;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-hero .btn-light:hover {
    background: #f8f9fa;
    color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.admin-hero .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-hero .btn-outline-light:hover {
    background: white;
    color: #1e3c72;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Dashboard/Admin Layout */
.dashboard-bg {
    background: #f8f9fa;
    padding: 2rem 0 2rem 0;
    margin-top: -80px;
    position: relative;
}

.admin-container {
    background: #f8f9fa;
    padding: 2rem 0 2rem 0;
    margin-top: -80px;
    position: relative;
}

/* Dashboard Cards - Improved */
.dashboard-card {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.dashboard-card .card-header {
    background: transparent;
    border-bottom: 2px solid #f1f5f9;
    padding: 1.5rem 1.75rem;
}

.dashboard-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3c72;
    margin: 0;
}

.dashboard-card .card-body {
    padding: 1.75rem;
    flex-grow: 1;
}

/* Admin Row Spacing */
.admin-container .row {
    margin-bottom: 0;
}

.admin-container .row > [class*='col-'] {
    margin-bottom: 1.5rem;
}

/* Form Improvements */
.dashboard-card .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.dashboard-card .form-control,
.dashboard-card .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s ease;
}

.dashboard-card .form-control:focus,
.dashboard-card .form-select:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.dashboard-card .form-text {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Form Check/Switch */
.dashboard-card .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    border: 2px solid #cbd5e1;
    cursor: pointer;
}

.dashboard-card .form-check-input:checked {
    background-color: #2a5298;
    border-color: #2a5298;
}

.dashboard-card .form-check-label {
    font-weight: 500;
    color: #475569;
    margin-left: 0.5rem;
}

/* Buttons in Admin */
.dashboard-card .btn,
.admin-container .btn,
.admin-hero .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
}

.dashboard-card .btn-primary,
.admin-container .btn-primary {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
}

.dashboard-card .btn-primary:hover,
.admin-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.4);
}

.dashboard-card .btn-success,
.admin-container .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

.dashboard-card .btn-info,
.admin-container .btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
}

/* Center buttons in forms */
.dashboard-card form .btn {
    display: inline-block;
}

/* Alert Improvements */
.dashboard-card .alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-card .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid #10b981;
}

.dashboard-card .alert-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border-left: 4px solid #fbbf24;
}

.dashboard-card .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.dashboard-card .alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border-left: 4px solid #3b82f6;
}

/* Stats Cards */
.stat-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: #2a5298;
    transform: translateY(-2px);
}

.stat-box .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3c72;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Table Improvements */
.dashboard-card .table {
    margin-bottom: 0;
}

.dashboard-card .table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.dashboard-card .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-card .table tbody tr:hover {
    background: #f8f9fa;
}

/* Badge Improvements */
.dashboard-card .badge {
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Input Groups */
.dashboard-card .input-group {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-card .input-group .form-control {
    border-radius: 0;
    border-right: none;
}

.dashboard-card .input-group .btn {
    border-radius: 0;
}

/* Card Icon Headers */
.card-icon-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon-header i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.card-icon-header .icon-primary {
    background: rgba(42, 82, 152, 0.1);
    color: #2a5298;
}

.card-icon-header .icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-icon-header .icon-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.card-icon-header .icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Billing Page Styles */
.usage-stat {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.usage-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2a5298;
}

.usage-label {
    font-weight: 600;
    color: #495057;
    margin-top: 0.25rem;
}

.usage-limit {
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    background: white;
}

.plan-card:hover {
    border-color: #2a5298;
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.15);
    transform: translateY(-2px);
}

.current-plan {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.plan-header {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-name {
    margin-bottom: 0.5rem;
    color: #1e3c72;
    font-weight: 600;
}

.plan-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #2a5298;
}

.plan-price .period {
    color: #6c757d;
}

.plan-description {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.plan-features ul li {
    padding: 0.25rem 0;
}

/* Responsive Dashboard/Admin */
@media (max-width: 991px) {
    .dashboard-hero,
    .admin-hero {
        padding: 3rem 0 !important;
    }
    
    .dashboard-hero .display-3,
    .admin-hero .display-3 {
        font-size: 2.5rem;
    }
    
    .dashboard-hero .row,
    .admin-hero .row {
        min-height: auto !important;
    }
    
    .dashboard-hero .col-lg-4,
    .admin-hero .col-lg-4 {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    .dashboard-hero .btn,
    .admin-hero .btn {
        width: 100%;
    }
    
    .dashboard-bg,
    .admin-container {
        padding: 1rem 0 2rem 0;
        margin-top: -50px;
    }
    
    .dashboard-card .card-header {
        padding: 1.25rem;
    }
    
    .dashboard-card .card-body {
        padding: 1.25rem;
    }
    
    .admin-container .row > [class*='col-'],
    .dashboard-bg .row > [class*='col-'] {
        margin-bottom: 1rem;
    }
}
