/* ==========================================================================
   GTA V MICHAEL iFRUIT PHONE SYSTEM - STYLESHEET
   Ultra-High Fidelity iFruit Replica with Tartan Wallpaper, 3x3 Grid & DMs
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Phone Launcher Widget (Bottom-Right)
   -------------------------------------------------------------------------- */
.ifruit-launcher-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.ifruit-launcher-btn:hover {
    transform: scale(1.08) translateY(-3px);
}

.ifruit-launcher-btn:active {
    transform: scale(0.95);
}

.ifruit-launcher-inner {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ifruit-launcher-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.4), transparent 70%);
    pointer-events: none;
}

.ifruit-launcher-icon {
    font-size: 1.45rem;
    color: #f3e8ff;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.8);
    transition: transform 0.2s ease;
}

.ifruit-launcher-btn:hover .ifruit-launcher-icon {
    transform: scale(1.1);
}

.ifruit-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 2px solid #0f172a;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.ifruit-launcher-tooltip {
    position: absolute;
    bottom: 64px;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.ifruit-launcher-btn:hover .ifruit-launcher-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ifruit-launcher-tooltip .key-hint {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.ifruit-launcher-tooltip .label-hint {
    color: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. Main Device Container & Chassis
   -------------------------------------------------------------------------- */
.ifruit-device-container {
    position: fixed;
    bottom: 20px;
    right: 24px;
    width: 290px;
    height: 560px;
    z-index: 9999;
    user-select: none;
    transform: translateY(115%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
    perspective: 1000px;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.85));
}

.ifruit-device-container.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ifruit-chassis {
    position: relative;
    width: 100%;
    height: 100%;
    background: #11141a;
    border-radius: 42px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 0 0 2px #333842,
        inset 0 0 0 4px #1c1f26,
        inset 0 1px 0 5px rgba(255, 255, 255, 0.12),
        0 15px 35px rgba(0, 0, 0, 0.7);
}

/* Metallic Bumper Trim Outer Border */
.ifruit-bumper-rim {
    position: absolute;
    inset: -3px;
    border-radius: 44px;
    border: 3px solid #474036;
    background: linear-gradient(135deg, #635848 0%, #2b2620 50%, #4a4134 100%);
    z-index: -1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   3. Top Bezel (Speaker, Camera & Logo)
   -------------------------------------------------------------------------- */
.ifruit-top-bezel {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.ifruit-earpiece {
    position: absolute;
    top: 6px;
    width: 38px;
    height: 4px;
    background: #252830;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.08);
}

.ifruit-camera-lens {
    position: absolute;
    top: 5px;
    left: 45px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b82f6 10%, #0f172a 80%);
    border: 1px solid #2d3340;
}

.ifruit-brand-logo {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 8px;
    color: #e2e8f0;
    font-family: 'Urbanist', -apple-system, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.ifruit-brand-logo .apple-fruit {
    font-size: 0.8rem;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.4));
}

/* --------------------------------------------------------------------------
   4. Screen Surface & Michael Plaid Tartan Wallpaper
   -------------------------------------------------------------------------- */
.ifruit-screen {
    position: relative;
    flex: 1;
    background-color: #3b0764;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}

/* Michael Default Theme: Purple Plaid Wallpaper (Birebir Ekran Görüntüsü) */
[data-theme="michael"] .ifruit-screen {
    background-color: #4a044e;
    background-image: 
        repeating-linear-gradient(0deg, rgba(162, 28, 175, 0.45) 0px, rgba(162, 28, 175, 0.45) 12px, transparent 12px, transparent 38px),
        repeating-linear-gradient(90deg, rgba(162, 28, 175, 0.45) 0px, rgba(162, 28, 175, 0.45) 12px, transparent 12px, transparent 38px),
        linear-gradient(135deg, #3b0764 0%, #581c87 50%, #2e1065 100%);
    background-size: 38px 38px, 38px 38px, 100% 100%;
}

/* Franklin Green Carbon Theme */
[data-theme="franklin"] .ifruit-screen {
    background-color: #022c22;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.25) 0%, transparent 60%),
        linear-gradient(45deg, #064e3b 25%, transparent 25%),
        linear-gradient(-45deg, #064e3b 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #064e3b 75%),
        linear-gradient(-45deg, transparent 75%, #064e3b 75%);
    background-size: 100% 100%, 16px 16px, 16px 16px, 16px 16px, 16px 16px;
}

/* Trevor Orange Stripe Theme */
[data-theme="trevor"] .ifruit-screen {
    background-color: #431407;
    background-image: 
        repeating-linear-gradient(45deg, rgba(234, 88, 12, 0.2) 0px, rgba(234, 88, 12, 0.2) 8px, transparent 8px, transparent 20px),
        linear-gradient(180deg, #7c2d12 0%, #270d05 100%);
}

/* Vice City Neon Theme */
[data-theme="vicecity"] .ifruit-screen {
    background-color: #1e1b4b;
    background-image: 
        linear-gradient(180deg, rgba(236, 72, 153, 0.4) 0%, rgba(6, 182, 212, 0.3) 100%),
        linear-gradient(0deg, #0f172a 0%, #1e1b4b 100%);
}

/* Screen Glass Glare */
.ifruit-screen-glare {
    position: absolute;
    top: 0;
    left: -40%;
    width: 180%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 30%, transparent 45%);
    pointer-events: none;
    z-index: 99;
}

/* --------------------------------------------------------------------------
   5. Status Bar
   -------------------------------------------------------------------------- */
.ifruit-status-bar {
    height: 22px;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-family: 'Urbanist', -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f8fafc;
    flex-shrink: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.signal-dots {
    letter-spacing: -2px;
    font-size: 0.65rem;
    color: #e2e8f0;
}

.location-arrow {
    font-size: 0.6rem;
    transform: rotate(45deg);
    margin-left: 2px;
}

.status-day {
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 2px;
}

.status-center {
    font-weight: 900;
    letter-spacing: 0.5px;
}

.status-right {
    display: flex;
    align-items: center;
}

.battery-icon {
    width: 18px;
    height: 9px;
    border: 1.5px solid #ffffff;
    border-radius: 2px;
    padding: 1px;
    position: relative;
    display: flex;
    align-items: center;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3.5px;
    top: 2px;
    width: 2px;
    height: 3px;
    background: #ffffff;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    height: 100%;
    background: #22c55e;
    border-radius: 1px;
}

/* --------------------------------------------------------------------------
   6. App Title Header Bar
   -------------------------------------------------------------------------- */
.ifruit-app-header {
    height: 32px;
    background: linear-gradient(180deg, #1e0b36 0%, #0f051d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 10px;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ifruit-header-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ifruit-header-back-btn {
    position: absolute;
    left: 8px;
    background: transparent;
    border: none;
    color: #c084fc;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.ifruit-header-back-btn:hover {
    color: #ffffff;
}

.ifruit-header-right-action {
    position: absolute;
    right: 8px;
    font-size: 0.75rem;
    color: #c084fc;
}

/* --------------------------------------------------------------------------
   7. Viewports Box & Screen Management
   -------------------------------------------------------------------------- */
.ifruit-viewports-box {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.ifruit-view {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ifruit-view.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.ifruit-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* --------------------------------------------------------------------------
   8. Home Screen 3x3 App Icon Grid (Pixel-Perfect GTA V Michael Phone)
   -------------------------------------------------------------------------- */
.ifruit-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px 10px;
    padding: 18px 14px;
    height: 100%;
    box-sizing: border-box;
    align-content: center;
}

.ifruit-app-icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    border-radius: 12px;
    padding: 4px 2px;
    transition: transform 0.15s ease;
}

.ifruit-app-icon-wrap:hover {
    transform: scale(1.08);
}

/* Authentic Selection Box */
.ifruit-app-icon-wrap.selected,
.ifruit-app-icon-wrap:focus-visible {
    transform: scale(1.1);
}

.ifruit-app-icon-wrap.selected .app-icon,
.ifruit-app-icon-wrap:focus-visible .app-icon {
    box-shadow: 0 0 0 3px #ffffff, 0 0 16px rgba(255, 255, 255, 0.9);
}

.app-icon {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.app-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.2px;
}

.app-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    border: 1.5px solid #111;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* 3x3 App Colors Identical to GTA 5 Michael Phone */
.bg-texts {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
}

.bg-contacts {
    background: linear-gradient(135deg, #a16207 0%, #713f12 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bg-jobs {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}

.bg-feed {
    background: linear-gradient(135deg, #e879f9 0%, #c026d3 100%);
}

.bg-internet {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
}

.bg-trackify {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
}

.bg-settings {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
}

.bg-snapmatic {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 50%, #ca8a04 100%);
    color: #1c1917;
}

.bg-quicksave {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   9. Texts / Messages Screen
   -------------------------------------------------------------------------- */
.ifruit-subscreen {
    display: none;
    flex-direction: column;
    height: 100%;
}

.ifruit-subscreen.active {
    display: flex;
}

.ifruit-action-strip {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ifruit-pill-btn {
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #f3e8ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ifruit-pill-btn:hover {
    background: rgba(168, 85, 247, 0.45);
    color: #fff;
}

.ifruit-conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
}

.ifruit-conv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.ifruit-conv-item:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateX(2px);
}

.ifruit-conv-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.ifruit-conv-body {
    flex: 1;
    min-width: 0;
}

.ifruit-conv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ifruit-conv-username {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ifruit-conv-time {
    font-size: 0.62rem;
    color: #94a3b8;
    margin-left: 4px;
    flex-shrink: 0;
}

.ifruit-conv-snippet {
    font-size: 0.7rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Chat Partner Info Bar */
.ifruit-chat-partner-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ifruit-chat-partner-bar .partner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ifruit-chat-partner-bar .partner-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.ifruit-chat-partner-bar .partner-status {
    font-size: 0.62rem;
    color: #22c55e;
    display: block;
}

/* Chat Thread Bubbles */
.ifruit-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-bubble {
    max-width: 82%;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.35;
    word-break: break-word;
    position: relative;
    animation: bubblePop 0.15s ease-out;
}

@keyframes bubblePop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.chat-bubble.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.chat-bubble.received {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.95);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.chat-bubble-time {
    font-size: 0.58rem;
    opacity: 0.75;
    margin-top: 3px;
    text-align: right;
}

/* Chat Input Bar */
.ifruit-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ifruit-chat-input-bar input {
    flex: 1;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 0 10px;
    font-size: 0.75rem;
    color: #fff;
    outline: none;
}

.ifruit-chat-input-bar input:focus {
    border-color: #c084fc;
}

.chat-send-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #10b981;
    border: none;
    color: #fff;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease;
}

.chat-send-btn:hover {
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   10. Contacts / Rehber Screen
   -------------------------------------------------------------------------- */
.ifruit-search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ifruit-search-box i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.ifruit-search-box input {
    flex: 1;
    height: 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    padding: 0 8px;
    font-size: 0.72rem;
    color: #fff;
    outline: none;
}

.ifruit-contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
}

.ifruit-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 5px;
    transition: background 0.15s ease;
}

.ifruit-contact-item:hover {
    background: rgba(168, 85, 247, 0.2);
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.contact-name {
    font-size: 0.76rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-role-tag {
    font-size: 0.6rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    display: inline-block;
    margin-top: 1px;
}

.contact-actions {
    display: flex;
    gap: 4px;
}

.contact-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c084fc;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.contact-action-btn:hover {
    background: #c084fc;
    color: #fff;
}

/* --------------------------------------------------------------------------
   11. Other Screens (Feed, Jobs, Internet, Snapmatic, Settings)
   -------------------------------------------------------------------------- */
.ifruit-section-label {
    font-size: 0.66rem;
    font-weight: 800;
    color: #c084fc;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ifruit-item-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ifruit-item-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #fff;
}

.ifruit-item-meta {
    font-size: 0.65rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

/* Eyefind Internet Portal */
.ifruit-browser-home {
    padding: 10px;
    height: 100%;
    overflow-y: auto;
}

.eyefind-hero-banner {
    text-align: center;
    padding: 12px 6px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    margin-bottom: 10px;
}

.eyefind-logo {
    font-size: 1.1rem;
    font-weight: 900;
    color: #38bdf8;
    font-family: sans-serif;
}

.eyefind-logo span {
    color: #f43f5e;
}

.eyefind-slogan {
    font-size: 0.68rem;
    color: #cbd5e1;
    margin-top: 2px;
}

.eyefind-shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.eyefind-link-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.eyefind-link-card:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.eyefind-link-card i {
    font-size: 1.3rem;
}

.eyefind-link-card span {
    font-size: 0.7rem;
    font-weight: 700;
}

/* Snapmatic Grid */
.snapmatic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px;
    overflow-y: auto;
    max-height: calc(100% - 40px);
}

.snapmatic-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.snapmatic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snapmatic-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

/* Settings Options */
.ifruit-theme-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.theme-opt-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.theme-opt-btn.active {
    border-color: #c084fc;
    background: rgba(168, 85, 247, 0.2);
}

.theme-color-preview {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
}

.ifruit-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.ifruit-toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.ifruit-toggle-switch input { opacity: 0; width: 0; height: 0; }

.switch-slider {
    position: absolute;
    inset: 0;
    background: #475569;
    border-radius: 20px;
    transition: 0.2s;
    cursor: pointer;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

input:checked + .switch-slider { background: #10b981; }
input:checked + .switch-slider::before { transform: translateX(16px); }

.ifruit-info-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.7rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Quick Save Box */
.ifruit-quicksave-box {
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.quicksave-icon-anim {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid #10b981;
    color: #10b981;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    animation: savePulse 1.5s infinite;
}

@keyframes savePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 18px rgba(16, 185, 129, 0.8); }
}

.ifruit-quicksave-box h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
}

.ifruit-quicksave-box p {
    font-size: 0.74rem;
    color: #cbd5e1;
    margin: 0;
}

.quicksave-meta {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   12. Bottom Navigation Bar & Physical Home Button
   -------------------------------------------------------------------------- */
.ifruit-bottom-nav {
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bottom-action-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 2px 14px;
    transition: color 0.15s ease;
}

.bottom-action-btn:hover {
    color: #fff;
}

.ifruit-bottom-bezel {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ifruit-physical-home-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #252830 0%, #11141a 100%);
    border: 1.5px solid #3b4252;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.ifruit-physical-home-btn:hover {
    border-color: #c084fc;
}

.ifruit-physical-home-btn:active {
    transform: scale(0.92);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9);
}

.home-btn-ring {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.ifruit-loading-spinner {
    padding: 24px;
    text-align: center;
    color: #c084fc;
    font-size: 0.78rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. Responsive Mobile Scaling
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .ifruit-device-container {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        max-width: 320px;
        height: 520px;
    }
}
