/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* Liste görünümü kartlarını ölçülü ve kompakt yap */
.strip.list_view {
	padding: 18px 24px !important;
	margin-bottom: 18px !important;
}

.strip.list_view .wrapper {
	max-width: 850px;
	padding-right: 20px;
}

.strip.list_view h3 {
	font-size: 1.3rem;
	margin-bottom: 8px;
}

.strip.list_view p {
	margin-bottom: 12px;
	line-height: 1.5;
}

.strip.list_view small {
	font-size: 0.9rem;
	margin-bottom: 10px;
	display: block;
}

@media (min-width: 1200px) {
	.strip.list_view .wrapper {
		max-width: 780px;
	}
}

/* İlaç Kategorileri Bölümü - Profesyonel Tasarım */
.main_title_2 h2 {
	font-size: 2.5rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 15px;
	letter-spacing: -0.5px;
}

.main_title_2 p {
	font-size: 1.1rem;
	color: #666;
	max-width: 800px;
	margin: 0 auto 40px;
	line-height: 1.7;
}

/* Kategori Kartları Modern Görünüm */
.grid_item {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
	position: relative;
}

.grid_item:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.grid_item figure {
	margin: 0;
	position: relative;
	overflow: hidden;
}

.grid_item figure img {
	transition: transform 0.6s ease;
	width: 100%;
	height: 280px;
	object-fit: cover;
}

.grid_item:hover figure img {
	transform: scale(1.08);
}

.grid_item .info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
	padding: 30px 25px;
	transition: all 0.4s ease;
}

.grid_item:hover .info {
	background: linear-gradient(to top, rgba(76, 81, 191, 0.95) 0%, rgba(76, 81, 191, 0.75) 60%, transparent 100%);
}

.grid_item .info h3 {
	color: #fff;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 8px 0;
	letter-spacing: 0.3px;
}

.grid_item .info small {
	color: rgba(255,255,255,0.9);
	font-size: 0.95rem;
	font-weight: 500;
	display: inline-block;
	background: rgba(255,255,255,0.15);
	padding: 4px 12px;
	border-radius: 20px;
	backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
	.main_title_2 h2 {
		font-size: 2rem;
	}
	
	.main_title_2 p {
		font-size: 1rem;
	}
	
	.grid_item figure img {
		height: 220px;
	}
	
	.grid_item .info h3 {
		font-size: 1.3rem;
	}
}

/* Modern Header & Account Dropdown Styles */
.modern-account-menu {
    float: right;
    margin-left: 20px;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
    top: -2px; /* Align with main menu text */
}

.dropdown-account {
    position: relative;
    margin-left: 15px;
}

.account-trigger {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: #fff;
    padding: 5px 10px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.header.sticky .account-trigger,
.header.header_in .account-trigger {
    color: #333;
}

.account-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header.sticky .account-trigger:hover,
.header.header_in .account-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.user-icon-circle {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #e74c3c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.header.sticky .user-icon-circle,
.header.header_in .user-icon-circle {
    background: #e74c3c;
    color: #fff;
}

/* Fix for invisible text in header_in mode */
.header.header_in .main-menu > ul > li span > a {
    color: #333 !important;
}

.header.header_in .logo_normal {
    display: none !important;
}

.header.header_in .logo_sticky {
    display: block !important;
}

/* Ensure logo_sticky is hidden by default on transparent header */
.header:not(.sticky):not(.header_in) .logo_sticky {
    display: none !important;
}

.header:not(.sticky):not(.header_in) .logo_normal {
    display: block !important;
}

/* Sticky header behavior */
.header.sticky .logo_normal {
    display: none !important;
}

.header.sticky .logo_sticky {
    display: block !important;
}

.header.sticky .main-menu > ul > li span > a {
    color: #333 !important;
}

.account-trigger:hover .user-icon-circle {
    transform: scale(1.1);
}

.user-label {
    font-weight: 600;
    font-size: 14px;
    margin-right: 5px;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
    margin-top: 15px;
}

.account-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 5px rgba(0,0,0,0.04);
}

.dropdown-account:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

.welcome-text {
    font-size: 12px;
    color: #999;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.4;
}

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

.dropdown-links li {
    float: none !important;
    display: block;
    margin: 0 !important;
}

ul#top_menu .dropdown-links li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #555 !important;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

ul#top_menu .dropdown-links li a:hover {
    background: #f9f9f9;
    color: #e74c3c !important;
    padding-left: 25px;
}

.dropdown-links li a i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-links .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* Main Menu Icons */
.main-menu ul li a i {
    margin-right: 5px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .modern-account-menu {
        margin-right: 50px;
    }
    
    .user-label, .arrow_carrot-down {
        display: none;
    }
    
    .account-dropdown {
        right: -50px;
        width: 200px;
    }
    
    .account-dropdown::before {
        right: 70px;
    }
}

/* Fix for listings.php header bug */
header.header_in {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999999;
    background-color: #fff;
    border-bottom: 1px solid #ededed;
    padding: 15px 20px !important; /* Match index.php sticky header padding */
}

/* Add padding to body to compensate for fixed header on inner pages */
body {
    padding-top: 70px; /* Adjust based on header height */
}

/* header.header_in.sticky {
    padding: 10px 0 !important;
} */

/* Remove blue background from results bar */
#results {
    background: transparent !important;
    color: #333 !important;
    border-bottom: 1px solid #ededed;
    margin-top: 0; /* Ensure no extra margin */
}

#results h4 {
    color: #333 !important;
}

/* Treeview Styles */
.treeview-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
}

.treeview, .treeview ul {
    list-style-type: none;
    padding-left: 20px;
}

.treeview {
    padding-left: 0;
}

.treeview li {
    margin: 10px 0;
    position: relative;
}

.tree-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tree-item:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transform: translateX(5px);
    border-color: #e74c3c;
}

.tree-item.open {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.tree-item.open .badge {
    background: #fff !important;
    color: #e74c3c !important;
}

.toggle-icon {
    margin-right: 10px;
    font-size: 14px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.folder-icon {
    margin-right: 10px;
    font-size: 18px;
}

.item-name {
    flex-grow: 1;
    font-weight: 600;
    font-size: 15px;
}

.nested {
    display: none;
    padding-left: 35px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nested.active {
    display: block;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tree-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.tree-link:hover {
    background: #f0f0f0;
    color: #e74c3c;
    padding-left: 20px;
}

.file-icon {
    margin-right: 10px;
    font-size: 16px;
    color: #999;
}

.tree-link:hover .file-icon {
    color: #e74c3c;
}

/* Sticky Search and Sidebar Styles */
.sticky-search-container {
    position: -webkit-sticky;
    position: sticky;
    top: 70px; /* Header height approx */
    z-index: 990;
    background-color: #f8f8f8; /* Match body background */
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

aside#sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 160px; /* Header (70) + Search (approx 90) */
    height: calc(100vh - 160px);
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Custom Scrollbar for Sidebar */
aside#sidebar::-webkit-scrollbar {
    width: 4px;
}

aside#sidebar::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
 
aside#sidebar::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}

aside#sidebar::-webkit-scrollbar-thumb:hover {
    background: #999; 
}
/* Minimal Medicine Card Design */
.medicine-card-minimal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.medicine-card-minimal:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.card-header-minimal {
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 20px;
}

.category-tag {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-body-minimal {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body-minimal h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-body-minimal h3 a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.card-body-minimal h3 a:hover {
    color: #003d82;
}

.card-body-minimal p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.active-ingredient {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.active-ingredient i {
    color: #aaa;
    font-size: 1rem;
}

.card-footer-minimal {
    padding: 15px 25px;
    background: #fff;
    display: flex;
    justify-content: flex-end;
}

.prescription-badge {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid;
    display: inline-block;
}

.badge-green {
    color: #28a745;
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.badge-red {
    color: #dc3545;
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* New Badge Animation */
.badge-new {
 background: linear-gradient(135deg, #ff0055 0%, #ff3377 100%);
 color: white;
 font-size: 10px;
 font-weight: 800;
 padding: 3px 8px;
 border-radius: 12px;
 margin-left: 8px;
 text-transform: uppercase;
 box-shadow: 0 3px 8px rgba(255, 0, 85, 0.4);
 animation: badgePulse 2s infinite;
 vertical-align: middle;
 display: inline-block;
 letter-spacing: 0.5px;
 position: relative;
 top: -1px;
}

@keyframes badgePulse {
 0% {
 transform: scale(1);
 box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7);
 }
 70% {
 transform: scale(1.05);
 box-shadow: 0 0 0 6px rgba(255, 0, 85, 0);
 }
 100% {
 transform: scale(1);
 box-shadow: 0 0 0 0 rgba(255, 0, 85, 0);
 }
}


/* Modern Category Cards */
.modern-cat-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    height: 100%;
    min-height: 140px;
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
}

.modern-cat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.modern-cat-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

.modern-cat-card:hover .modern-cat-content {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
}

.modern-cat-count {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modern-cat-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modern-cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Gradient Presets */
.cat-gradient-1 { background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.cat-gradient-2 { background-image: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%); }
.cat-gradient-3 { background-image: linear-gradient(135deg, #9796f0 0%, #fbc7d4 100%); }
.cat-gradient-4 { background-image: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.cat-gradient-5 { background-image: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.cat-gradient-6 { background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); }

@keyframes gradientMove {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}


/* Collaboration Footer Signature */
.collab-signature-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUpSig 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.5s;
}

.collab-signature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 60px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.collab-signature::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: 0.5s;
}

.collab-signature:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.collab-signature:hover::before {
    left: 100%;
}

.brand-ay {
    color: #ff0055;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -1px;
}

.brand-labs {
    color: #1a1a1a;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -1px;
}

.collab-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #ff0055;
    font-size: 12px;
    font-weight: bold;
    animation: pulseX 3s infinite ease-in-out;
}

.brand-rising {
    font-weight: 800;
    font-size: 28px;
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.collab-text {
    font-size: 15px;
    color: #888;
    font-weight: 500;
    margin-left: 8px;
    border-left: 2px solid #eee;
    padding-left: 20px;
}

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

@keyframes pulseX {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 0, 85, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .collab-signature {
        flex-direction: column;
        gap: 5px;
        padding: 20px;
        border-radius: 20px;
    }
    .collab-text {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 10px;
        margin-top: 5px;
        margin-left: 0;
    }
    .collab-divider {
        transform: rotate(90deg);
        margin: 5px 0;
    }
}


/* Modern Minimal Medicine Card */
.modern-minimal-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.modern-minimal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.08);
}

.modern-minimal-card .card-body-minimal {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-minimal-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.4;
}

.modern-minimal-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-tag-minimal {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 30px;
}

.prescription-badge-minimal {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-red-minimal {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.badge-green-minimal {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.active-ingredient-minimal {
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-ingredient-minimal i {
    color: #ccc;
    font-size: 16px;
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}


/* Updated Collaboration Signature Layout */
.collab-signature {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 30px 70px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(255,255,255,0.5) inset !important;
}

.collab-brands-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.collab-text-centered {
    font-size: 13px;
    color: #aaa;
    font-weight: 600;
    margin-top: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Enhanced & Animation */
.collab-divider {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    font-family: 'Georgia', serif; /* More elegant ampersand */
    font-style: italic;
    background: linear-gradient(135deg, #222 0%, #444 100%) !important;
    color: white !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
    animation: softPulse 3s infinite ease-in-out !important;
    position: relative;
    z-index: 5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collab-divider::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: ripple 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes softPulse {
    0% { transform: scale(1); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(1.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
    100% { transform: scale(1); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.5; border-width: 2px; }
    100% { transform: scale(1.6); opacity: 0; border-width: 0px; }
}

/* Mobile Responsive Update */
@media (max-width: 768px) {
    .collab-brands-row {
        flex-direction: column;
        gap: 10px;
    }
    .collab-divider {
        margin: 10px 0;
    }
}


/* Modern How It Works Section */
.modern-how-section {
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.modern-how-section::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.modern-step-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    height: 100%;
    z-index: 1;
}

.modern-step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    line-height: 1;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
}

.modern-step-card:hover .step-number {
    color: rgba(102, 126, 234, 0.1);
    transform: scale(1.2);
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    position: relative;
}

.modern-step-card:hover .step-icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: rotateY(180deg);
}

.step-icon-wrapper i {
    font-size: 32px;
    color: #555;
    transition: all 0.4s ease;
}

.modern-step-card:hover .step-icon-wrapper i {
    color: #fff;
    transform: rotateY(-180deg); /* Keep icon facing forward */
}

.modern-step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.modern-step-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    margin: 0;
}

.arrow-connector {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ddd;
    z-index: 0;
}

@media (max-width: 768px) {
    .arrow-connector {
        display: none;
    }
    .modern-step-card {
        margin-bottom: 30px;
    }
}


/* Ultra Modern Collaboration Signature */
.collab-signature-container {
    width: 100%;
    padding-bottom: 60px;
}

.collab-signature-modern {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 30px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.08), 
                0 0 0 1px rgba(0,0,0,0.03);
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    overflow: hidden;
    transition: transform 0.4s ease;
    backdrop-filter: blur(20px);
}

.collab-signature-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.12), 
                0 0 0 1px rgba(0,0,0,0.05);
}

.collab-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,0,85,0.03) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

.collab-content-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.brand-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-ay-modern {
    font-size: 36px;
    font-weight: 900;
    color: #ff0055;
    letter-spacing: -1px;
    line-height: 1;
}

.brand-labs-modern {
    font-size: 36px;
    font-weight: 900;
    color: #111;
    letter-spacing: -1px;
    line-height: 1;
}

.brand-sub-modern {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.brand-rising-modern {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(45deg, #111, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.collab-center-piece {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collab-x-symbol {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 28px;
    color: #ff0055;
    position: relative;
    z-index: 2;
    animation: pulseSymbol 3s infinite ease-in-out;
}

.collab-center-piece::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255,0,85,0.1);
    animation: rippleEffect 2s infinite;
}

.collab-center-piece::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255,0,85,0.1);
    animation: rippleEffect 2s infinite 0.5s;
}

.collab-bottom-text {
    font-size: 13px;
    color: #999;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
    width: 100%;
    justify-content: center;
}

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

@keyframes pulseSymbol {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes rippleEffect {
    0% { transform: scale(0.8); opacity: 1; border-width: 2px; }
    100% { transform: scale(1.5); opacity: 0; border-width: 0px; }
}

@media (max-width: 768px) {
    .collab-content-row {
        flex-direction: column;
        gap: 20px;
    }
    .collab-signature-modern {
        padding: 30px;
        /* width: 100%; inherited */
    }
    .collab-center-piece {
        transform: rotate(90deg);
    }
    .collab-x-symbol {
        transform: rotate(-90deg);
    }
}

