/**
 * Instagram 2013 Retro Theme for Mishaland
 * Authentic early 2010s skeuomorphic aesthetics:
 * - Iconic Instagram blue header gradient (#5185ad -> #3f729b -> #2d5d82)
 * - Billabong / Pacifico white cursive logo with deep inset text-shadow
 * - Skeuomorphic beveled glossy header & action buttons
 * - Vintage web feed background (#edeff0) with crisp white cards
 * - Deep Instagram link blue (#125688) for usernames & like counts
 * - Square / slightly rounded avatar frames (iOS 6 era)
 * - Photo frames with classic matte borders
 * - iOS 6 dark slate tab bar with vintage raised camera shutter button
 */

/* =========================================================
   1. GLOBAL CONTAINER & BASE STYLING
   ========================================================= */
html[data-preset="instagram_2013"] {
    --brand-primary: #3f729b;
    --brand-gradient: linear-gradient(180deg, #5185ad 0%, #3f729b 50%, #2d5d82 100%);
    --ig-blue: #125688;
    --ig-header-blue: #3f729b;
    --ig-header-gradient: linear-gradient(180deg, #5185ad 0%, #3f729b 50%, #2d5d82 100%);
    --ig-border: #c9d0d6;
    --ig-dark-border: #1a3c56;
    --ig-feed-bg: #edeff0;
    --ig-card-bg: #ffffff;
    --ig-text-main: #262626;
    --ig-text-muted: #6c7a89;
    --ig-like-red: #ed4956;
}

html[data-preset="instagram_2013"][data-theme="dark"] {
    --brand-primary: #3f729b;
    --brand-gradient: linear-gradient(180deg, #2c3e50 0%, #1e2b38 50%, #151f28 100%);
    --ig-blue: #5185ad;
    --ig-header-blue: #1e2b38;
    --ig-header-gradient: linear-gradient(180deg, #2c3e50 0%, #1e2b38 50%, #151f28 100%);
    --ig-border: #2c3744;
    --ig-dark-border: #0f161c;
    --ig-feed-bg: #14181d;
    --ig-card-bg: #1c2229;
    --ig-text-main: #e8ecf1;
    --ig-text-muted: #8c9aa9;
    --ig-like-red: #ff5263;
}

html[data-preset="instagram_2013"] body {
    background-color: var(--ig-feed-bg) !important;
    background-image: linear-gradient(180deg, #e3e7ea 0px, #edeff0 120px) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: var(--ig-text-main) !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] body {
    background-color: var(--ig-feed-bg) !important;
    background-image: linear-gradient(180deg, #181d24 0px, #14181d 120px) !important;
}

/* App Container constraint */
html[data-preset="instagram_2013"] .app-container {
    max-width: 620px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* =========================================================
   2. RETRO SKEUOMORPHIC TOP HEADER
   ========================================================= */
html[data-preset="instagram_2013"] .app-header {
    background: var(--ig-header-gradient) !important;
    border-bottom: 1px solid var(--ig-dark-border) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    height: 48px;
    padding: 0 14px;
}

/* Logo (Always pure white in both light and dark mode on retro blue header) */
html[data-preset="instagram_2013"] .header-logo img,
html[data-preset="instagram_2013"] #logoImage {
    filter: brightness(0) invert(1) !important;
}

/* Logo Cursive Typography */
html[data-preset="instagram_2013"] .header-logo-text {
    font-family: 'Pacifico', 'Billabong', cursive !important;
    font-size: 1.6rem !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: 0.5px !important;
}

/* Header Page Title */
html[data-preset="instagram_2013"] .header-page-title {
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7), 0 1px 1px rgba(0, 0, 0, 0.3) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}

/* Header Buttons (Skeuomorphic Glossy Buttons) */
html[data-preset="instagram_2013"] .header-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(0, 0, 0, 0.18) 100%) !important;
    border: 1px solid rgba(18, 52, 78, 0.85) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.25) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    width: 34px !important;
    height: 34px !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6) !important;
    transition: all 0.15s ease !important;
}

html[data-preset="instagram_2013"] .header-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(0, 0, 0, 0.12) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

html[data-preset="instagram_2013"] .header-btn:active {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(1px) !important;
}

/* =========================================================
   3. FEED CARDS (POLAROID / 2013 INSTAGRAM WEB POSTS)
   ========================================================= */
html[data-preset="instagram_2013"] .thread-card {
    background-color: var(--ig-card-bg) !important;
    border: 1px solid var(--ig-border) !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.75) !important;
    margin: 14px 0 !important;
    padding: 16px !important;
    transition: box-shadow 0.2s ease !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] .thread-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

html[data-preset="instagram_2013"] .thread-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
}

/* Avatar Frame: Softly rounded square (iOS 6 Instagram style) */
html[data-preset="instagram_2013"] .thread-avatar {
    border-radius: 4px !important;
    border: 1px solid var(--ig-border) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
    padding: 1px !important;
    background: #ffffff !important;
}

html[data-preset="instagram_2013"] .avatar-container {
    border-radius: 4px !important;
}

/* Thread Author Name (Classic Deep Instagram Blue) */
html[data-preset="instagram_2013"] .thread-author-name {
    color: var(--ig-blue) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}

html[data-preset="instagram_2013"] .thread-author-name:hover {
    text-decoration: underline !important;
}

/* Timestamp & Meta */
html[data-preset="instagram_2013"] .thread-age {
    color: var(--ig-text-muted) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

/* Ellipsis Actions Button */
html[data-preset="instagram_2013"] .thread-actions-menu-btn {
    color: var(--ig-text-muted) !important;
}

html[data-preset="instagram_2013"] .thread-actions-menu-btn:hover {
    color: var(--ig-blue) !important;
}

/* Photo / Media Attachment: Vintage photo matte frame */
html[data-preset="instagram_2013"] .thread-media-attachment {
    border-radius: 3px !important;
    border: 1px solid #d4dbe0 !important;
    padding: 3px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] .thread-media-attachment {
    border: 1px solid #2b3542 !important;
    background: #15191e !important;
}

html[data-preset="instagram_2013"] .thread-media-img {
    border-radius: 2px !important;
}

/* Thread Content Typography */
html[data-preset="instagram_2013"] .thread-content {
    color: var(--ig-text-main) !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

html[data-preset="instagram_2013"] .thread-content a {
    color: var(--ig-blue) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

html[data-preset="instagram_2013"] .thread-content a:hover {
    text-decoration: underline !important;
}

/* Thread Actions Row */
html[data-preset="instagram_2013"] .thread-actions-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 10px !important;
    margin-top: 12px !important;
    display: flex;
    align-items: center;
    gap: 14px;
}

html[data-preset="instagram_2013"][data-theme="dark"] .thread-actions-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-preset="instagram_2013"] .action-icon-btn {
    color: var(--ig-text-muted) !important;
    font-size: 1.1rem !important;
    transition: all 0.15s ease !important;
}

html[data-preset="instagram_2013"] .action-icon-btn:hover {
    color: var(--ig-blue) !important;
    background-color: rgba(63, 114, 155, 0.08) !important;
}

/* Like Heart (Classic Instagram Red) */
html[data-preset="instagram_2013"] .action-icon-btn.liked {
    color: var(--ig-like-red) !important;
}

html[data-preset="instagram_2013"] .action-icon-btn.liked i {
    color: var(--ig-like-red) !important;
    animation: igHeartBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes igHeartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

html[data-preset="instagram_2013"] .action-label.like-count {
    color: var(--ig-blue) !important;
    font-weight: 700 !important;
}

/* =========================================================
   4. BOTTOM NAVBAR (iOS 6 / VINTAGE SKEUOMORPHIC TAB BAR)
   ========================================================= */
html[data-preset="instagram_2013"] .bottom-navbar,
html[data-preset="instagram_2013"] .bottom-navbar.liquid-glass {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 620px !important;
    height: 52px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #2c343d 0%, #1a2026 100%) !important;
    border: none !important;
    border-top: 1px solid #0f1317 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 -2px 10px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 200 !important;
}

html[data-preset="instagram_2013"] .bottom-nav-item,
html[data-preset="instagram_2013"] .bottom-navbar.liquid-glass .bottom-nav-item {
    color: #8e9ca8 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}

html[data-preset="instagram_2013"] .bottom-nav-item:hover,
html[data-preset="instagram_2013"] .bottom-navbar.liquid-glass .bottom-nav-item:hover {
    color: #d1d9e0 !important;
}

/* Active Nav Icon with Blue Glow */
html[data-preset="instagram_2013"] .bottom-nav-item.active,
html[data-preset="instagram_2013"] .bottom-navbar.liquid-glass .bottom-nav-item.active {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(81, 133, 173, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

html[data-preset="instagram_2013"] .bottom-nav-item.active i,
html[data-preset="instagram_2013"] .bottom-navbar.liquid-glass .bottom-nav-item.active i {
    color: #ffffff !important;
}

/* Center Shutter Button: The Iconic 2013 Camera Button */
html[data-preset="instagram_2013"] .bottom-nav-item.compose-btn,
html[data-preset="instagram_2013"] .bottom-nav-compose-pill,
html[data-preset="instagram_2013"] [data-action="compose"] {
    background: linear-gradient(180deg, #5185ad 0%, #2d5d82 100%) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-6px);
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

html[data-preset="instagram_2013"] .bottom-nav-item.compose-btn:hover,
html[data-preset="instagram_2013"] .bottom-nav-compose-pill:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

html[data-preset="instagram_2013"] .bottom-nav-item.compose-btn:active,
html[data-preset="instagram_2013"] .bottom-nav-compose-pill:active {
    transform: translateY(-4px) scale(0.98) !important;
}

html[data-preset="instagram_2013"] .bottom-nav-item.compose-btn i,
html[data-preset="instagram_2013"] .bottom-nav-compose-pill i {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4) !important;
}

/* =========================================================
   5. DESKTOP SIDEBAR (RETRO 2013 SKEUOMORPHIC SLATE PANEL)
   ========================================================= */
html[data-preset="instagram_2013"] .desktop-sidebar {
    background: linear-gradient(180deg, #2b333a 0%, #1a2026 100%) !important;
    border-right: 1px solid #111518 !important;
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.35), inset -1px 0 0 rgba(255, 255, 255, 0.08) !important;
    padding: 20px 16px !important;
}

/* Sidebar Logo Badge Box */
html[data-preset="instagram_2013"] .sidebar-logo {
    background: linear-gradient(180deg, #5185ad 0%, #3f729b 50%, #2d5d82 100%) !important;
    border: 1px solid #1a3c56 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    margin-bottom: 24px !important;
}

html[data-preset="instagram_2013"] .sidebar-logo a {
    color: #ffffff !important;
}

html[data-preset="instagram_2013"] .sidebar-logo img,
html[data-preset="instagram_2013"] #sidebarLogoImage {
    filter: brightness(0) invert(1) !important;
}

html[data-preset="instagram_2013"] .sidebar-logo-text {
    font-family: 'Pacifico', 'Billabong', cursive !important;
    font-size: 1.65rem !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: 0.5px !important;
}

/* Sidebar Nav Items */
html[data-preset="instagram_2013"] .sidebar-nav-item {
    border-radius: 4px !important;
    color: #c2cdd8 !important;
    font-weight: 600 !important;
    font-size: 0.98rem !important;
    padding: 10px 14px !important;
    transition: all 0.15s ease !important;
    margin-bottom: 4px !important;
    border: 1px solid transparent !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6) !important;
}

html[data-preset="instagram_2013"] .sidebar-nav-item i {
    color: #8f9ea8 !important;
    transition: color 0.15s ease !important;
}

html[data-preset="instagram_2013"] .sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html[data-preset="instagram_2013"] .sidebar-nav-item:hover i {
    color: #ffffff !important;
}

/* Active Nav Item: Iconic Instagram 2013 Blue Button Gradient */
html[data-preset="instagram_2013"] .sidebar-nav-item.active {
    background: linear-gradient(180deg, #5185ad 0%, #3f729b 50%, #2d5d82 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #1a3c56 !important;
    border-radius: 4px !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6) !important;
}

html[data-preset="instagram_2013"] .sidebar-nav-item.active i {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(81, 133, 173, 0.9) !important;
}

/* Sidebar Compose Button ("Yeni Paylaşım") */
html[data-preset="instagram_2013"] .sidebar-compose-btn {
    background: linear-gradient(180deg, #5185ad 0%, #2d5d82 100%) !important;
    border: 1px solid #1a3c56 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 5px rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6) !important;
    font-weight: 700 !important;
    padding: 12px 18px !important;
    margin-top: 14px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

html[data-preset="instagram_2013"] .sidebar-compose-btn:hover {
    background: linear-gradient(180deg, #5c92ba 0%, #35678e 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 8px rgba(0, 0, 0, 0.45) !important;
}

html[data-preset="instagram_2013"] .sidebar-compose-btn:active {
    transform: translateY(1px) !important;
    background: linear-gradient(180deg, #275273 0%, #44779d 100%) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Sidebar Footer */
html[data-preset="instagram_2013"] .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3) !important;
    padding-top: 14px !important;
}

html[data-preset="instagram_2013"] .sidebar-footer-item,
html[data-preset="instagram_2013"] .sidebar-user-card {
    color: #8e9ca8 !important;
    transition: color 0.15s ease !important;
}

html[data-preset="instagram_2013"] .sidebar-footer-item:hover {
    color: #ffffff !important;
}

/* =========================================================
   6. BUTTONS & FORMS (SKEUOMORPHIC BEVELS & SHADOWS)
   ========================================================= */
/* Primary Action Buttons */
html[data-preset="instagram_2013"] button[type="submit"],
html[data-preset="instagram_2013"] .btn-primary,
html[data-preset="instagram_2013"] .btn-modern-primary,
html[data-preset="instagram_2013"] .new-thread-submit-btn {
    background: linear-gradient(180deg, #5185ad 0%, #2d5d82 100%) !important;
    border: 1px solid #1a3c56 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

html[data-preset="instagram_2013"] button[type="submit"]:hover,
html[data-preset="instagram_2013"] .btn-primary:hover,
html[data-preset="instagram_2013"] .btn-modern-primary:hover,
html[data-preset="instagram_2013"] .new-thread-submit-btn:hover {
    background: linear-gradient(180deg, #5c92ba 0%, #35678e 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

html[data-preset="instagram_2013"] button[type="submit"]:active,
html[data-preset="instagram_2013"] .btn-primary:active,
html[data-preset="instagram_2013"] .new-thread-submit-btn:active {
    background: linear-gradient(180deg, #275273 0%, #44779d 100%) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(1px) !important;
}

/* Secondary Buttons */
html[data-preset="instagram_2013"] .btn-secondary,
html[data-preset="instagram_2013"] .btn-modern-secondary {
    background: linear-gradient(180deg, #fefefe 0%, #e8ecef 100%) !important;
    border: 1px solid #bec7ce !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    color: #333333 !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] .btn-secondary {
    background: linear-gradient(180deg, #2c3642 0%, #1e2630 100%) !important;
    border: 1px solid #3d4a59 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #e4e8ec !important;
}

/* Follow Overlay Button */
html[data-preset="instagram_2013"] .follow-overlay-btn {
    background: linear-gradient(180deg, #5185ad 0%, #2d5d82 100%) !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Input Fields & Textareas */
html[data-preset="instagram_2013"] input[type="text"],
html[data-preset="instagram_2013"] input[type="password"],
html[data-preset="instagram_2013"] input[type="search"],
html[data-preset="instagram_2013"] textarea,
html[data-preset="instagram_2013"] select {
    background: #ffffff !important;
    border: 1px solid var(--ig-border) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    color: var(--ig-text-main) !important;
    padding: 8px 12px !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] input[type="text"],
html[data-preset="instagram_2013"][data-theme="dark"] input[type="password"],
html[data-preset="instagram_2013"][data-theme="dark"] input[type="search"],
html[data-preset="instagram_2013"][data-theme="dark"] textarea,
html[data-preset="instagram_2013"][data-theme="dark"] select {
    background: #171d24 !important;
    border: 1px solid #2d3744 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

/* =========================================================
   7. FEED TABS (iOS 6 SEGMENTED CONTROL)
   ========================================================= */
html[data-preset="instagram_2013"] .feed-tabs-container,
html[data-preset="instagram_2013"] .feed-tabs {
    background: #dde1e5 !important;
    border: 1px solid #c2c9d0 !important;
    border-radius: 6px !important;
    padding: 3px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12) !important;
    margin: 12px 0 16px !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] .feed-tabs-container,
html[data-preset="instagram_2013"][data-theme="dark"] .feed-tabs {
    background: #15191f !important;
    border: 1px solid #232b34 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

html[data-preset="instagram_2013"] .feed-tab {
    border-radius: 4px !important;
    color: var(--ig-text-muted) !important;
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    padding: 6px 12px !important;
    transition: all 0.15s ease !important;
}

html[data-preset="instagram_2013"] .feed-tab.active {
    background: linear-gradient(180deg, #5185ad 0%, #2d5d82 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1a3c56 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
}

/* =========================================================
   8. COMPOSER CARD (NEW POST BOX)
   ========================================================= */
html[data-preset="instagram_2013"] .new-thread-box,
html[data-preset="instagram_2013"] .compose-card {
    background-color: var(--ig-card-bg) !important;
    border: 1px solid var(--ig-border) !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 16px !important;
    padding: 16px !important;
}

/* =========================================================
   9. VINTAGE CAMERA DETAILS & RETRO BADGES
   ========================================================= */
html[data-preset="instagram_2013"] .verification-badge {
    color: #3f729b !important;
}

/* Custom Scrollbar */
html[data-preset="instagram_2013"] ::-webkit-scrollbar-thumb {
    background: #b4bfc9 !important;
    border-radius: 4px !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #2b3542 !important;
}

/* =========================================================
   10. PROFILE PAGE (VINTAGE 2012-2013 INSTAGRAM WEB PROFILE)
   ========================================================= */
html[data-preset="instagram_2013"] .profile-card,
html[data-preset="instagram_2013"] .profile-header-container,
html[data-preset="instagram_2013"] .profile-container {
    background-color: var(--ig-card-bg) !important;
    border: 1px solid var(--ig-border) !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
}

html[data-preset="instagram_2013"] .profile-avatar-large,
html[data-preset="instagram_2013"] .profile-avatar-wrapper img {
    border-radius: 4px !important;
    border: 1px solid var(--ig-border) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    padding: 2px !important;
    background: #ffffff !important;
}

html[data-preset="instagram_2013"] .profile-name,
html[data-preset="instagram_2013"] .profile-username-title {
    color: var(--ig-blue) !important;
    font-weight: 700 !important;
}

html[data-preset="instagram_2013"] .profile-stat-number,
html[data-preset="instagram_2013"] .profile-stats-count {
    color: var(--ig-blue) !important;
    font-weight: 700 !important;
}

/* Edit Profile Button */
html[data-preset="instagram_2013"] .profile-edit-btn,
html[data-preset="instagram_2013"] a.profile-edit-button {
    background: linear-gradient(180deg, #fefefe 0%, #e8ecef 100%) !important;
    border: 1px solid #bec7ce !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    color: #333333 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 6px 14px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

html[data-preset="instagram_2013"] .profile-edit-btn:hover,
html[data-preset="instagram_2013"] a.profile-edit-button:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dfdfdf 100%) !important;
}

/* =========================================================
   11. THREAD / POST DETAIL & COMMENTS
   ========================================================= */
html[data-preset="instagram_2013"] .comment-card,
html[data-preset="instagram_2013"] .comment-item,
html[data-preset="instagram_2013"] .thread-reply-item {
    background: var(--ig-card-bg) !important;
    border-bottom: 1px solid var(--ig-border) !important;
}

html[data-preset="instagram_2013"] .comment-author-name,
html[data-preset="instagram_2013"] .mention-link {
    color: var(--ig-blue) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

html[data-preset="instagram_2013"] .comment-author-name:hover,
html[data-preset="instagram_2013"] .mention-link:hover {
    text-decoration: underline !important;
}

/* Dropdown & Menus */
html[data-preset="instagram_2013"] .thread-actions-dropdown,
html[data-preset="instagram_2013"] .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid var(--ig-border) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

html[data-preset="instagram_2013"][data-theme="dark"] .thread-actions-dropdown,
html[data-preset="instagram_2013"][data-theme="dark"] .dropdown-menu {
    background: #1c2229 !important;
    border: 1px solid #2d3744 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

html[data-preset="instagram_2013"] .dropdown-item {
    color: var(--ig-text-main) !important;
    font-size: 0.88rem !important;
    padding: 10px 14px !important;
    transition: background 0.15s ease !important;
}

html[data-preset="instagram_2013"] .dropdown-item:hover {
    background: rgba(63, 114, 155, 0.1) !important;
    color: var(--ig-blue) !important;
}

/* Toast Notifications */
html[data-preset="instagram_2013"] .toast,
html[data-preset="instagram_2013"] #toast {
    background: linear-gradient(180deg, #5185ad 0%, #2d5d82 100%) !important;
    border: 1px solid #1a3c56 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
    font-weight: 600 !important;
}
