/* ============================================
   GABON DEAL - DESIGN EXACT DE L'IMAGE
   ============================================ */

/* RESET BASIQUE */
body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F8F9FA;
    margin: 0;
    padding: 0;
    color: #000000;
}

/* VARIABLES CSS */
:root {
    --primary-blue: #007AFF;
    --text-secondary: #8E8E93;
    --white: #FFFFFF;
    --transition-fast: 0.2s;
    --red-notification: #FF3B30;
}

#app {
    width: 100%;
}

.page-home {
    background: #F8F9FA;
}

/* ===== 1. HEADER IMAGE MATCHING ===== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    z-index: 2000;
    padding-bottom: 12px;
    box-shadow: none;
    /* Removed the 1px line/shadow */
}

/* Row 1: Greeting & Account */
.header-top {
    display: flex;
    align-items: flex-start;
    /* Align top for text block */
    justify-content: space-between;
    padding: 16px 16px 8px 16px;
    height: auto;
    /* Allow auto height for text */
}

/* Left Text Block */
.header-top .left-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.greeting-row {
    display: flex;
    align-items: center;
}

.welcome-text {
    font-size: 22px;
    font-weight: 800;
    color: #1c1c1e;
    margin: 0;
    letter-spacing: -0.5px;
}

.wave-emoji {
    font-size: 22px;
    margin-left: 6px;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.subtitle {
    font-size: 14px;
    color: #8E8E93;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Right Icons */
.header-top .right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    /* Align slightly with text top */
}

/* Icons Button Wrapper */
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    /* No background in screenshot for notification */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #1c1c1e;
    font-size: 24px;
    transition: background 0.2s;
}

.icon-btn ion-icon {
    font-size: 26px;
    /* Bigger icon */
}

.icon-btn:active {
    background: #E5E5EA;
}

/* Badge Notification */
.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #FF3B30;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #FFFFFF;
}

/* Profile Avatar */
.profile-avatar-small {
    width: 44px;
    /* Slightly bigger */
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    /* Removed border */
}

.profile-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Row 2: Search Bar (Integrated with Filter) */
.header-bottom {
    display: block;
    /* Ensure it is visible */
    padding: 10px 16px 12px 16px;
    background: transparent;
}

.header-bottom .searchbar {
    background: transparent;
    padding: 0;
    box-shadow: none !important;
}

.header-bottom .searchbar-inner {
    background: #F8F9FA;
    /* Slight contrast so it pops against white header */
    border-radius: 30px;
    /* Super rounded (Pill shape) */
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
    /* Clean flat look or soft shadow only */
    border: none;
    /* No border for the container */
    transition: all 0.3s ease;
}

.header-bottom .searchbar-inner:focus-within {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Lift on focus */
    transform: translateY(-1px);
}

.header-bottom .searchbar-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.search-start-icon ion-icon {
    font-size: 24px;
    color: var(--primary-blue);
    opacity: 0.8;
}

.header-bottom input[type="search"] {
    background: transparent;
    border: none !important;
    border-bottom: none !important;
    /* Force removal of bottom line */
    outline: none !important;
    height: 100%;
    width: 100%;
    font-size: 16px;
    padding-left: 12px;
    color: #1c1c1e;
    font-weight: 500;
    text-align: left;
    background-image: none !important;
    /* Remove any bg images used as lines */
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.header-bottom input[type="search"]::after {
    display: none !important;
    /* Kill any pseudo-element lines */
}

/* Framework7 Specific Resets for Hairlines */
.header-bottom .searchbar:after,
.header-bottom .searchbar:before,
.header-bottom .searchbar-inner:after,
.header-bottom .searchbar-inner:before {
    display: none !important;
    height: 0 !important;
    background: none !important;
    background-image: none !important;
}

.header-bottom input[type="search"]::placeholder {
    color: #8E8E93;
    font-weight: 400;
}

.filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1c1e;
    padding-left: 14px;
    /* border-left: 1px solid rgba(0, 0, 0, 0.08); REMOVED DIVIDER */
    height: 24px;
    cursor: pointer;
}

.filter-icon ion-icon {
    font-size: 24px;
    color: #1c1c1e;
    transition: transform 0.2s;
}

.filter-icon:active ion-icon {
    transform: scale(0.9);
}

/* SCROLL FIX */
.page-content {
    padding-bottom: 100px !important;
    /* padding-top: 180px !important; MOVED */
    overflow-y: auto !important;
    height: 100vh;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Specific fix for Home Page with large header */
.page-home .page-content {
    padding-top: 180px !important;
}

/* ===== 3. CATÉGORIES ===== */
.categories {
    background: #FFFFFF;
    padding: 20px 16px;
    border-bottom: 1px solid #E5E5EA;
}

.modern-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modern-title h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #000000;
}

/* Bouton Voir plus */
.see-all {
    color: #007AFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ===== 3. CATÉGORIES (WIDGETS STYLE) ===== */
.categories-wrapper {
    display: flex;
    overflow-x: auto;
    padding: 4px 4px 16px 4px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Base Widget Card */
.widget-card {
    width: 100%;
    /* Adapts to grid column */
    aspect-ratio: 1 / 1;
    /* Force perfect square */
    height: auto;
    /* Let aspect-ratio decide height */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    /* Reduced padding to fit content better */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.widget-card:active {
    transform: scale(0.95);
}

.widget-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Icon */
.widget-card .widget-icon ion-icon {
    font-size: 28px;
    color: white;
    margin-bottom: 4px;
}

/* Label */
.widget-card .widget-label {
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Gradients */
.widget-color-1 {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    /* Blue */
}

.widget-color-2 {
    background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%);
    /* Orange/Red */
}

.widget-color-3 {
    background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%);
    /* Purple */
}

.widget-color-4 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    /* Green */
}

.widget-color-gray {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    /* Black/Gray */
}

/* ===== 4. ANNONCES RÉCEMMENT PUBLIÉES ===== */
.featured {
    background: #FFFFFF;
    padding: 20px 0;
    border-bottom: 1px solid #E5E5EA;
}

.featured .swiper-container {
    padding-left: 16px;
}

/* Swiper horizontal */
.featured .swiper-wrapper {
    display: flex;
    gap: 12px;
}

.featured .swiper-slide {
    width: 200px !important;
}

/* Carte d'annonce */
.swiper-slide .content {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E5EA;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Zone image grise */
.swiper-slide .content>div:first-child {
    width: 100%;
    height: 120px;
    background: #F2F2F7;
    position: relative;
}

/* Badge NOUVEAU vert */
.ad-badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #34C759;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Contenu de l'annonce */
.ad-info {
    padding: 12px;
}

/* Titre Toyota 2022 */
.ad-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #000000;
}

/* Prix 2.000.000 XAF */
.ad-price {
    font-size: 18px;
    font-weight: 700;
    color: #007AFF;
    margin-bottom: 6px;
}

/* Localisation */
.ad-location {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 8px;
}

.ad-location ion-icon {
    font-size: 14px;
    margin-right: 4px;
    color: #FF3B30;
    /* Red pin like screenshot */
}

/* Catégorie Voiture */
.ad-category-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #F2F2F7;
    border-radius: 4px;
    font-size: 11px;
    color: #8E8E93;
    font-weight: 500;
}

/* ===== 5. TAB BAR ===== */
.toolbar-bottom {
    background: #FFFFFF;
    border-top: 1px solid #E5E5EA;
    height: 60px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible;
    /* Fix button cutoff */
}

.toolbar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: visible;
    /* Fix button cutoff */
}

/* Onglets - Override Stronger selector for Framework7 iOS theme */
.toolbar-inner .tab-link,
.ios .tabbar-labels .tab-link,
.ios .tabbar-labels .link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Force bottom alignment */
    padding-bottom: 6px !important;
    /* Space from bottom edge */
    padding-top: 15px !important;
    /* Visible space from top edge */
    color: #8E8E93;
    text-decoration: none;
    flex: 1;
    height: 100%;
    overflow: visible;
}

.tab-link.tab-link-active {
    color: #007AFF;
}

.tab-link ion-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.tabbar-label {
    font-size: 11px;
    font-weight: 500;
}

/* Bouton VENDRE central aligné (Style Simple) */
.tab-icon-box {
    width: 28px;
    height: 28px;
    background: #007AFF;
    border-radius: 8px;
    /* Squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

.tab-icon-box ion-icon {
    font-size: 20px;
    color: white;
    /* White plus */
    font-weight: 700;
}

.tab-link:active .tab-icon-box {
    transform: scale(0.95);
    background: #0056b3;
}

/* Old FAB styles removed/replaced functionality */
/* .adding-ads-btn { ... } */

/* ===== 6. SIDEBAR ===== */
.panel-left {
    width: 280px;
    background: #FFFFFF;
}

.panel-header {
    background: #007AFF;
    padding: 24px 16px;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-panel img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-panel .title-name h5 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-panel .title-name p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

/* ===== 7. UTILITAIRES ===== */
.separator-small {
    height: 16px;
}

.separator-large {
    height: 32px;
}

/* Page content */
.page-content {
    padding-bottom: 60px;
}

/* Responsive */
@media (max-width: 375px) {
    .categories .row {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured .swiper-slide {
        width: 180px !important;
    }
}

/* ===== HORIZONTAL CARD (RECENT ADS) ===== */
.recent-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 80px;
    /* Added bottom padding for FAB */
}

.ad-card-horizontal {
    display: flex;
    background: #F5F5F7;
    /* Gris clair demandé par l'utilisateur */
    border-radius: 16px;
    /* overflow: hidden; Removed to fix visibility */
    padding: 12px;
    border: none;
    gap: 12px;
    margin-bottom: 8px;
    /* Espacement entre les cartes */
}

/* Image carré arrondi */
.ad-card-horizontal .ad-image {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ad-card-horizontal .ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-card-horizontal .ad-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Push tags to bottom, title to top */
    min-width: 0;
    height: auto;
    /* Fill the card height */
    padding: 2px 0;
    /* Tiny padding */
}

.ad-card-horizontal .ad-info a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.ad-card-horizontal .ad-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1c1c1e;
    /* Noir profond Apple */
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-card-horizontal .ad-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.ad-card-horizontal .ad-location {
    margin-bottom: 4px;
    /* Reduced from 8px */
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #8e8e93;
    /* Gris moyen */
    font-weight: 500;
}

.ad-card-horizontal .ad-location ion-icon {
    font-size: 14px;
    margin-right: 4px;
    color: #FF3B30;
    /* Hardcoded Red */
}

.ad-card-horizontal .ad-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.tag-gray {
    background: #E5E5EA;
    color: var(--text-secondary);
}

.tag-blue {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.25);
}

/* ===== FAB BUTTON ===== */
.fab-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    z-index: 1000;
    font-size: 28px;
    transition: transform var(--transition-fast);
}

.fab-button:active {
    transform: scale(0.95);
}

/* ====================================
   PROFILE CARD DESIGN (Reference Image)
   ==================================== */
.profile-card {
    background: #fff;
    border-radius: 24px;
    margin: 20px 16px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Soft shadow like image */
    text-align: center;
    position: relative;
    overflow: visible;
    /* For avatar pop-out if needed */
}

.profile-avatar-centered {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    /* Rounded square squircle style like image */
    object-fit: cover;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

.profile-name-large {
    font-size: 22px;
    font-weight: 700;
    color: #1c1c1e;
    margin: 0;
    letter-spacing: -0.5px;
}

.profile-member-since {
    font-size: 14px;
    color: #8e8e93;
    margin: 4px 0 24px;
}

/* Stats Row with Divider */
.profile-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    padding: 0 10px;
}

.stat-item {
    flex: 1;
    /* Equal width */
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #1c1c1e;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #8e8e93;
    font-weight: 500;
}

/* Vertical Divider in middle */
.stat-divider {
    width: 1px;
    height: 40px;
    background-color: #e5e5ea;
    margin: 0 10px;
}

/* Main Action Button (Green/Teal from image) */
.btn-profile-main {
    background: #00C895;
    /* Teal color from image */
    color: white;
    font-weight: 600;
    border-radius: 12px;
    height: 48px;
    width: 100%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 200, 149, 0.3);
    text-transform: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Secondary Action Buttons Row */
.profile-actions-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.btn-profile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s;
}

.btn-gray {
    background: #8e8e93;
    color: white;
}

.btn-orange {
    background: #ff9500;
    color: white;
}

.btn-blue {
    background: #007aff;
    color: white;
}

.btn-red {
    background: #FF3B30;
    color: white;
}

/* Inset Lists override for clean look below card */
.list.inset {
    margin: 0 16px 20px;
    border-radius: 16px;
}

/* ====================================
   AD DETAILS DESIGN (Reference Image)
   ==================================== */

/* Navbar Title Override if needed */
.navbar .title {
    font-weight: 600;
}

/* Image Section */
.detail-image-card {
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f2f2f7;
    height: 250px;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-thumbnails-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -30px;
    /* Overlap effect if desired, or just regular margin */
    /* If overlap, we need z-index */
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.detail-thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #fff;
    overflow: hidden;
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header Info (Title & Price) */
.detail-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 25px;
}

.detail-title-large {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1e;
    margin: 0;
}

.detail-price-large {
    font-size: 18px;
    font-weight: 800;
    color: #007AFF;
    /* Blue */
    margin: 0;
}

/* Action Buttons Row */
.detail-actions-row {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.action-btn-large {
    flex: 1;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    text-transform: none;
}

.action-btn-large ion-icon {
    font-size: 20px;
    margin-right: 8px;
}

.btn-offer {
    background: #6CD4B6;
    /* Teal/Greenish */
}

.btn-call {
    background: #007AFF;
}

/* Chat Section Card */
.detail-card-section {
    background: #F2F2F7;
    /* Light gray background like image */
    border-radius: 20px;
    margin: 0 20px 25px;
    padding: 20px;
}

.section-label {
    font-size: 14px;
    color: #8E8E93;
    margin-bottom: 12px;
    font-weight: 500;
}

.chat-input-fake {
    background: transparent;
    border: 1px solid #C7C7CC;
    border-radius: 12px;
    padding: 12px 16px;
    color: #8E8E93;
    margin-bottom: 15px;
    font-size: 15px;
    background: #fff;
    /* Make input white */
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* Info List */
.info-list-title {
    font-size: 15px;
    color: #8E8E93;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-list-divider {
    height: 1px;
    background: #D1D1D6;
    margin-bottom: 15px;
    border-top: 1px dashed #D1D1D6;
    /* Dashed style */
    background: transparent;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.info-label {
    color: #8E8E93;
}

.info-value {
    color: #1c1c1e;
    font-weight: 500;
    text-align: right;
}

/* ====================================
   PREMIUM FORM DESIGN
   ==================================== */

.page-bg-gray {
    background: #F2F2F7 !important;
}

.form-card {
    background: #FFFFFF;
    border-radius: 16px;
    margin: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-card .section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8E8E93;
    margin-bottom: 15px;
    font-weight: 600;
}

.premium-input {
    width: 100%;
    border: 1px solid #E5E5EA;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    box-sizing: border-box;
    background: #F9F9F9;
    transition: all 0.2s ease;
    margin-top: 6px;
    color: #1c1c1e;
}

.premium-input:focus {
    border-color: #007AFF;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.upload-slot {
    aspect-ratio: 1/1;
    background: #F2F2F7;
    border: 2px dashed #C7C7CC;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.upload-slot:active {
    background: #E5E5EA;
}

.upload-slot ion-icon {
    font-size: 28px;
    color: #007AFF;
    margin-bottom: 4px;
}

.upload-slot span {
    font-size: 10px;
    color: #8E8E93;
}

.upload-preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
}

/* PREMIUM FAB BUTTON (REMOVED FOR SIMPLE STYLE) */
/* .adding-ads-btn { display: none; } */

.adding-ads-btn ion-icon {
    font-size: 24px;
    color: white;
    font-weight: 700;
}

/* ELEVATED WIDGET CARD (Categories) */
.widget-card-elevated {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 15px 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.widget-card-elevated:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.widget-card-elevated .widget-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-card-elevated .widget-label {
    font-size: 12px;
    font-weight: 600;
    color: #1c1c1e;
    letter-spacing: -0.2px;
}

/* =============================================
   PREMIUM CATEGORY SELECTION (Add Ads)
   ============================================= */

/* Search Input Premium */
.search-premium {
    background: #FFFFFF;
    border-radius: 12px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.search-premium ion-icon {
    color: #8E8E93;
    font-size: 20px;
    margin-right: 12px;
}

.search-premium span {
    font-size: 15px;
    color: #8E8E93;
    font-weight: 500;
}

/* Category Grid Container */
.category-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 16px 40px 16px;
    /* Bottom padding for scroll */
}

/* Premium Category Button Card */
.category-select-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    height: 150px;
}

.category-select-card:active {
    transform: scale(0.94);
}

/* Icon Box */
.category-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-icon-box ion-icon {
    font-size: 32px;
    color: white;
}

/* Label */
.category-select-card h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1c1c1e;
    line-height: 1.25;
}

/* Gradients */
.bg-gradient-blue {
    background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #FF9500 0%, #FFD200 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #AF52DE 0%, #FF2D55 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
}

/* =============================================
   PREMIUM FORM STYLES (Add Product)
   ============================================= */

.form-card-premium {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card-header-premium {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-premium .header-icon {
    font-size: 22px;
    color: #007AFF;
    /* Primary color */
    margin-right: 10px;
    background: rgba(0, 122, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.card-header-premium span {
    font-size: 17px;
    font-weight: 700;
    color: #1c1c1e;
}

/* Premium Inputs */
.input-group-premium {
    margin-bottom: 20px;
}

.input-group-premium:last-child {
    margin-bottom: 0;
}

.input-group-premium label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    background: #F9F9F9;
    /* Updated background */
    border-radius: 12px;
    padding: 0 16px;
    height: 54px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #E5E5EA;
}

.input-wrapper:focus-within {
    background: #FFFFFF;
    border-color: #007AFF;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
}

.input-wrapper ion-icon {
    font-size: 20px;
    color: #aeaeb2;
    margin-right: 12px;
}

.input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1e;
    height: 100%;
}

.input-wrapper input::placeholder {
    color: #C7C7CC;
}

/* Textarea wrapper override */
.input-wrapper.textarea-wrapper {
    height: auto;
    padding: 12px 16px;
    align-items: flex-start;
}

.input-wrapper textarea {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: #1c1c1e;
    min-height: 100px;
    resize: none;
    font-family: inherit;
}

/* Premium Photo Upload Grid */
.premium-hint {
    font-size: 13px;
    color: #34C759;
    /* Green for encouragement */
    margin-top: -10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.upload-grid-premium {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 15px;
    height: 200px;
}

.upload-slot-premium {
    background: #F2F2F7;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.upload-slot-premium.main-slot {
    grid-column: 1;
    height: 100%;
}

.upload-slot-premium:active {
    transform: scale(0.98);
    background: #E5E5EA;
}

.secondary-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.secondary-slots .upload-slot-premium {
    flex: 1;
}

/* Slot Content Styling */
.placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.placeholder-content .icon-circle {
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.main-slot .placeholder-content ion-icon {
    font-size: 24px;
    color: #007AFF;
}

.secondary-slots .placeholder-content ion-icon {
    font-size: 24px;
    color: #aeaeb2;
}

.placeholder-content span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8E8E93;
}

.image-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: pointer;
    top: 0;
    left: 0;
}

.preview-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    display: none;
    /* JS will toggle block */
}

/* Image preview logic via CSS for empty/filled state can be complex, relying on JS for background-image injection is better */
.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premium Action Button */
#submit-ad-btn {
    background: linear-gradient(135deg, #007AFF 0% 0%, #0056b3 100%) !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    height: 56px !important;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3) !important;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

#submit-ad-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2) !important;
}