
        .inn9ps-shell * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .inn9ps-shell {
            --bg-primary: #1F1F1F;
            --bg-secondary: #292929;
            --bg-card: #252525;
            --accent-orange: #FF7A1A;
            --accent-orange-hover: #E06700;
            --accent-orange-light: rgba(255, 152, 0, 0.2);
            --text-primary: #FFFFFF;
            --text-secondary: #B0B0B0;
            --text-muted: #9E9E9E;
            --success-green: #4CAF50;
            --danger-red: #F44336;
            --border-color: #3D3D3D;
            --input-bg: #1A1A1A;
        }

        .inn9ps-shell {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.6;
        }

        /* Header Styles */
        .header {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
            border-bottom: 3px solid var(--accent-orange);
            padding: 20px 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: var(--accent-orange);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 20px;
            color: var(--bg-primary);
        }

        .logo-text {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .logo-text span {
            color: var(--accent-orange);
        }

        .btn-new-ad {
            background: var(--accent-orange);
            color: var(--bg-primary);
            border: none;
            padding: 14px 28px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-new-ad:hover {
            background: var(--accent-orange-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
        }

        /* Main Content */
        .main-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .page-title {
            text-align: center;
            margin-bottom: 40px;
        }

        .page-title h1 {
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 10px;
            background: linear-gradient(90deg, var(--text-primary), var(--accent-orange));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .page-title p {
            color: var(--text-secondary);
            font-size: 18px;
        }

        .page-title-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 6px;
        }

        .ps-home-btn {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            background: var(--accent-orange);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 8px 18px rgba(0,0,0,.35);
            transition: transform .15s ease, filter .15s ease;
        }

        .ps-home-btn:hover {
            transform: translateY(-1px);
            filter: brightness(1.03);
        }

        /* Mobile avatar no inicio do body */
        .ps-mobile-avatar {
            display: none;
            width: 92px;
            height: 92px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 14px;
            border: 3px solid var(--accent-orange);
            box-shadow: 0 10px 30px rgba(0,0,0,.45);
            background: #111;
        }

        .ps-mobile-avatar-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Floating button usa o video (sem circulo duplo) */
        .maria-button {
            overflow: hidden;
        }

        .maria-fab-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        @media (max-width: 768px) {
            .ps-mobile-avatar { display: block; }
            .page-title h1 { font-size: 32px; }
        }

        /* Filter Section */
        .filter-section {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 30px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            align-items: center;
        }

        .filter-btn {
            background: var(--bg-card);
            color: var(--text-primary);
            border: 2px solid var(--border-color);
            padding: 12px 24px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-btn:hover,
        .filter-btn.active {
            border-color: var(--accent-orange);
            background: rgba(255, 152, 0, 0.1);
            color: var(--accent-orange);
        }

        .search-box {
            flex: 1;
            min-width: 250px;
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 14px 20px 14px 50px;
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--accent-orange);
        }

        .search-box::before {
            content: '🔍';
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
        }

        /* Ads Grid */
        .ads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 24px;
        }

        .ad-card {
            background: var(--bg-secondary);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }

        .ad-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            border-color: var(--accent-orange);
        }

        .ad-image {
            width: 100%;
            height: 200px;
            background: var(--input-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            position: relative;
            overflow: hidden;
        }

        .ad-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .ad-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--accent-orange);
            color: var(--bg-primary);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .ad-type-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(0, 0, 0, 0.7);
            color: var(--text-primary);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

        .ad-content {
            padding: 20px;
        }

        .ad-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-primary);
            line-height: 1.4;
        }

        .ad-price {
            font-size: 22px;
            font-weight: 700;
            color: var(--accent-orange);
            margin-bottom: 12px;
        }

        .ad-price span {
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 400;
        }

        .ad-description {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .ad-meta {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }

        .ad-meta-name {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .ad-meta-divider {
            height: 1px;
            background: var(--border-color);
            margin: 0 0 12px 0;
        }

        .ad-meta-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }

        .ad-location {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .ad-contact-btn {
            background: var(--accent-orange);
            color: var(--bg-primary);
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .ad-contact-btn:hover {
            background: var(--accent-orange-hover);
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            grid-column: 1 / -1;
        }

        .empty-state-icon {
            font-size: 80px;
            margin-bottom: 20px;
        }

        .empty-state h3 {
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        .empty-state p {
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        /* Floating Maria Bonita Button */
        .maria-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 70px;
            height: 70px;
            background: var(--accent-orange);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4);
            z-index: 1000;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }

        .maria-button:hover {
            transform: scale(1.1);
        }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4); }
            50% { box-shadow: 0 6px 35px rgba(255, 152, 0, 0.6); }
        }

        .maria-button img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
        }

        /* Maria Bonita Modal */
        .maria-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 20px;
            backdrop-filter: blur(5px);
        }

        .maria-modal-overlay.active {
            display: flex;
        }

        /* Modal base (desktop/tablet). Mobile overrides live inside @media (max-width: 768px). */
        .maria-modal {
            width: 900px;
            max-width: 95vw;
            height: 650px;
            max-height: 90vh;
            background: var(--bg-primary);
            border-radius: 24px;
            display: flex;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 25px 70px rgba(0,0,0,.55);
            animation: modalSlideIn 0.35s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .maria-avatar-section {
            width: 35%;
            background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px;
            border-right: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .maria-avatar-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 152, 0, 0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .maria-avatar {
            width: 200px;
            height: 350px;
            border-radius: 100px;
            object-fit: cover;
            position: relative;
            z-index: 1;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            border: 3px solid var(--accent-orange);
        }

        .maria-name {
            margin-top: 20px;
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            position: relative;
            z-index: 1;
            text-align: center;
        }

        .maria-role {
            font-size: 14px;
            color: var(--accent-orange);
            position: relative;
            z-index: 1;
            text-align: center;
        }

        .maria-chat-section {
            width: 65%;
            display: flex;
            flex-direction: column;
            background: var(--bg-primary);
        }

            .maria-header {
                padding: 14px 16px;
            }

            .maria-header h3 {
                font-size: 18px;
            }

            .close-btn {
                font-size: 30px;
                padding: 6px;
            }

            /* On mobile, allow messages (especially preview) to use full width */
            .message-content {
d                max-width: 100%;
            }

        .maria-header {
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-secondary);
        }

        .maria-header h3 {
            font-size: 18px;
            font-weight: 600;
        }

        .close-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 28px;
            cursor: pointer;
            transition: color 0.3s ease;
            line-height: 1;
        }

        .close-btn:hover {
            color: var(--danger-red);
        }

        .chat-container {
            flex: 1;
            padding: 25px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .chat-message {
            display: flex;
            gap: 15px;
            animation: messageSlide 0.4s ease;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .chat-message.bot {
            flex-direction: row;
        }

        .chat-message.user {
            flex-direction: row-reverse;
        }

        .message-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            border: 2px solid var(--accent-orange);
        }

        .message-content {
            max-width: 75%;
            padding: 15px 20px;
            border-radius: 16px;
            font-size: 15px;
            line-height: 1.6;
        }

        .chat-message.bot .message-content {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-bottom-left-radius: 4px;
        }

        .chat-message.user .message-content {
            background: var(--accent-orange);
            color: var(--bg-primary);
            border-bottom-right-radius: 4px;
        }

        .input-area {
            padding: 20px 25px;
            border-top: 1px solid var(--border-color);
            background: var(--bg-secondary);
        }

        /* Option Buttons */
        .option-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            max-width: 400px;
            margin-top: 10px;
        }

        .option-btn {
            background: var(--bg-card);
            color: var(--text-primary);
            border: 2px solid var(--border-color);
            padding: 16px 24px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .option-btn:hover {
            border-color: var(--accent-orange);
            background: rgba(255, 152, 0, 0.1);
            transform: translateX(5px);
        }

        .option-btn.selected {
            border-color: var(--accent-orange);
            background: var(--accent-orange);
            color: var(--bg-primary);
        }

        .option-icon {
            font-size: 24px;
        }

        /* Form Inputs */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .form-input {
            width: 100%;
            padding: 14px 18px;
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent-orange);
        }

        .char-counter {
            text-align: right;
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        .char-counter.warning {
            color: #FFC107;
        }

        .char-counter.limit {
            color: var(--danger-red);
        }

        /* Checkbox Grid */
        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 10px;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .checkbox-item:hover {
            border-color: var(--accent-orange);
        }

        .checkbox-item input {
            display: none;
        }

        .checkbox-custom {
            width: 22px;
            height: 22px;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .checkbox-item input:checked + .checkbox-custom {
            background: var(--accent-orange);
            border-color: var(--accent-orange);
        }

        .checkbox-item input:checked + .checkbox-custom::after {
            content: '✓';
            color: var(--bg-primary);
            font-size: 14px;
            font-weight: bold;
        }

        .checkbox-label {
            font-size: 14px;
            color: var(--text-primary);
        }

        /* Value Type Buttons */
        .value-type-buttons {
            display: flex;
            gap: 12px;
            margin-top: 10px;
        }

        .value-type-btn {
            flex: 1;
            padding: 16px 20px;
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .value-type-btn:hover {
            border-color: var(--accent-orange);
        }

        .value-type-btn.selected {
            border-color: var(--accent-orange);
            background: rgba(255, 152, 0, 0.15);
            color: var(--accent-orange);
        }

        /* Save Button */
        .save-btn {
            background: var(--accent-orange);
            color: var(--bg-primary);
            border: none;
            padding: 14px 32px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 15px;
        }

        .save-btn:hover {
            background: var(--accent-orange-hover);
            transform: translateY(-2px);
        }

        .save-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Preview Card */
        .preview-card {
            background: var(--bg-card);
            border-radius: 16px;
            overflow: hidden;
            border: 2px solid var(--accent-orange);
            margin-top: 15px;
        }

        .preview-image {
            width: 100%;
            height: 180px;
            background: var(--input-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 50px;
        }

        .preview-content {
            padding: 20px;
        }

        .preview-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        .preview-price {
            font-size: 24px;
            font-weight: 700;
            color: var(--accent-orange);
            margin-bottom: 12px;
        }

        .preview-description {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .preview-meta {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .preview-tag {
            background: var(--bg-secondary);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .preview-location {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--text-muted);
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .action-btn {
            flex: 1;
            padding: 16px 24px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .action-btn.cancel {
            background: var(--danger-red);
            color: white;
        }

        .action-btn.confirm {
            background: var(--success-green);
            color: white;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            filter: brightness(1.1);
        }

        /* Size Buttons - New */
        .size-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .size-btn {
            padding: 12px 20px;
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .size-btn:hover {
            border-color: var(--accent-orange);
        }

        .size-btn.selected {
            border-color: var(--accent-orange);
            background: var(--accent-orange);
            color: var(--bg-primary);
        }

        /* Time Picker - New */
        .time-picker-container {
            display: flex;
            gap: 20px;
            margin-top: 10px;
        }

        .time-picker-group {
            flex: 1;
        }

        .time-picker-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 6px;
            display: block;
        }

        .time-input {
            width: 100%;
            padding: 14px 16px;
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .time-input:focus {
            outline: none;
            border-color: var(--accent-orange);
        }

        /* Unit Toggle - New */
        .unit-toggle {
            display: flex;
            background: var(--input-bg);
            border-radius: 12px;
            padding: 5px;
            margin-bottom: 20px;
        }

        .unit-toggle-btn {
            flex: 1;
            padding: 12px 16px;
            background: transparent;
            border: none;
            border-radius: 8px;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .unit-toggle-btn.active {
            background: var(--accent-orange);
            color: var(--bg-primary);
        }

        /* Visual Ruler Slider - New */
        .ruler-container {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 25px 20px;
            margin-top: 15px;
        }

        .ruler-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .ruler-value-display {
            font-size: 36px;
            font-weight: 700;
            color: var(--accent-orange);
        }

        .ruler-unit {
            font-size: 18px;
            color: var(--text-secondary);
            font-weight: 400;
        }

        .ruler-track-container {
            position: relative;
            height: 80px;
            margin: 20px 0;
            touch-action: none;
        }

        .ruler-track {
            position: absolute;
            top: 40px;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--border-color);
            border-radius: 2px;
        }

        .ruler-ticks {
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 40px;
        }

        .ruler-tick {
            position: absolute;
            bottom: 0;
            width: 2px;
            background: var(--border-color);
            transform: translateX(-50%);
        }

        .ruler-tick.major {
            height: 20px;
        }

        .ruler-tick.minor {
            height: 10px;
        }

        .ruler-tick-label {
            position: absolute;
            bottom: -22px;
            transform: translateX(-50%);
            font-size: 11px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .ruler-handle {
            position: absolute;
            top: 26px;
            width: 28px;
            height: 28px;
            background: var(--accent-orange);
            border-radius: 50%;
            cursor: grab;
            transform: translateX(-50%);
            box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
            transition: transform 0.1s ease, box-shadow 0.2s ease;
            z-index: 10;
        }

        .ruler-handle:hover {
            transform: translateX(-50%) scale(1.1);
            box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
        }

        .ruler-handle:active {
            cursor: grabbing;
            transform: translateX(-50%) scale(1.15);
        }

        .ruler-handle::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 10px;
            height: 10px;
            background: white;
            border-radius: 50%;
            opacity: 0.8;
        }

        .ruler-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 35px;
            padding: 0 5px;
        }

        .ruler-label-start,
        .ruler-label-end {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Quantity Select - New */
        .quantity-select {
            width: 100%;
            padding: 14px 18px;
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF9800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
        }

        .quantity-select:focus {
            outline: none;
            border-color: var(--accent-orange);
        }

        /* Measurement Fields Container - New */
        .measurement-fields-container {
            margin-top: 15px;
            padding: 15px;
            background: var(--bg-card);
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

        .measurement-field-item {
            margin-bottom: 15px;
        }

        .measurement-field-item:last-child {
            margin-bottom: 0;
        }

        .measurement-field-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 10px;
            display: block;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                text-align: center;
            }

            .page-title h1 {
                font-size: 32px;
            }

            .filter-section {
                flex-direction: column;
            }

            .search-box {
                width: 100%;
            }

            .ads-grid {
                grid-template-columns: 1fr;
            }

            .maria-modal {
                flex-direction: column;
                /* Mobile-only: maximize usable width/height; keep desktop unchanged */
                width: 100%;
                max-width: 100%;
                height: calc(100dvh - 12px);
                max-height: calc(100dvh - 12px);
                margin: 0;
                border-radius: 18px;
            
            }
            .maria-modal-overlay {
                padding: 4px;
                align-items: stretch;
            }

            /* === MOBILE SCROLL FIX (Android/iOS) ===
               Guarantee the chat area is the scroll container.
               Without min-height:0 on flex children, overflow-y won't work reliably.
            */
            .maria-chat-section {
                width: 100%;
                flex: 1;
                min-height: 0;
            }
            .chat-container {
                flex: 1;
                min-height: 0;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
                touch-action: pan-y;
            }

            .maria-header {
                padding: 14px 16px;
            }

            .maria-header h2,
            .maria-header h3 {
                font-size: 18px;
            }

            .message-content {
                max-width: 100%;
            }

            .chat-container {
                padding: 16px;
            }

            .maria-avatar-section {
                width: 100%;
                padding: 20px;
                border-right: none;
                border-bottom: 1px solid var(--border-color);
            }

            .maria-avatar {
                width: 120px;
                height: 120px;
                border-radius: 50%;
            }

            .maria-chat-section {
                width: 100%;
                flex: 1;
                display: flex;
                flex-direction: column;
                min-height: 0;
            }

            .maria-header {
                padding: 14px 16px;
                position: sticky;
                top: 0;
                z-index: 3;
            }

            .maria-header h3 {
                font-size: 16px;
            }

            .close-btn {
                font-size: 26px;
            }

            .message-content {
                max-width: 100%;
            }

            .chat-container {
                padding: 16px;
                overscroll-behavior: contain;
            }
            /* Mobile-only: compact modal header to free vertical space */
            .maria-header {
                padding: 14px 16px;
            }

            .maria-header h2,
            .maria-header h3 {
                font-size: 18px;
                line-height: 1.2;
            }

            /* Mobile-only: let message blocks (including preview) use full width */
            .message-content {
                max-width: 100% !important;
            }

            /* Mobile-only: reduce chat padding a bit for small screens */
            .chat-container {
                padding: 16px;
            }


            .checkbox-grid {
                grid-template-columns: 1fr;
            }

            .value-type-buttons {
                flex-direction: column;
            }

            .action-buttons {
                flex-direction: column;
            }

            .chat-container {
                padding: 15px;
                min-height: 0;
                -webkit-overflow-scrolling: touch;
            }
            .message-content {
                max-width: 100%;
            }
            .time-picker-container {
                flex-direction: column;
                gap: 15px;
            }

            .ruler-container {
                padding: 20px 15px;
            }

            .ruler-value-display {
                font-size: 28px;
            }

            .size-buttons {
                flex-wrap: wrap;
            }

            .size-btn {
                flex: 1;
                min-width: calc(50% - 5px);
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .page-title h1 {
                font-size: 26px;
            }

            .maria-button {
                width: 60px;
                height: 60px;
                bottom: 20px;
                right: 20px;
            }

            .maria-button img {
                width: 50px;
                height: 50px;
            }

            .ruler-tick-label {
                font-size: 10px;
            }
        }

        /* Carrossel de Imagens */
        .carousel-container {
            position: relative;
            width: 100%;
            height: 250px;
            overflow: hidden;
            border-radius: 12px;
            background: var(--input-bg);
        }
        
        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            object-fit: cover;
        }
        
        .carousel-slide.active {
            opacity: 1;
        }
        
        .carousel-dots {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
        }
        
        .carousel-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .carousel-dot.active {
            background: var(--accent-orange);
            transform: scale(1.2);
        }
        
        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .carousel-arrow:hover {
            background: var(--accent-orange);
        }
        
        .carousel-arrow.prev {
            left: 10px;
        }
        
        .carousel-arrow.next {
            right: 10px;
        }
        
        .image-upload-area {
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: var(--input-bg);
            margin-bottom: 15px;
        }
        
        .image-upload-area:hover {
            border-color: var(--accent-orange);
            background: rgba(255, 152, 0, 0.05);
        }
        
        .image-upload-area.dragover {
            border-color: var(--accent-orange);
            background: rgba(255, 152, 0, 0.1);
        }
        
        .image-upload-icon {
            font-size: 48px;
            margin-bottom: 10px;
        }
        
        .image-upload-text {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .image-upload-hint {
            color: var(--text-muted);
            font-size: 12px;
        }
        
        .image-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .image-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            background: var(--bg-card);
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }
        
        .image-thumb {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }
        
        .image-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .image-name {
            color: var(--text-primary);
            font-size: 13px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .image-size {
            color: var(--text-muted);
            font-size: 11px;
        }
        
        .image-remove-btn {
            background: none;
            border: none;
            color: var(--danger-red);
            font-size: 20px;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .image-remove-btn:hover {
            background: rgba(244, 67, 54, 0.1);
        }
        
        /* Responsive */
        @media (max-width: 480px) {
            .image-list-item {
                padding: 8px;
                gap: 10px;
            }
            
            .image-thumb {
                width: 45px;
                height: 45px;
            }
            
            .image-name {
                font-size: 12px;
            }
            
            .carousel-container {
                height: 200px;
            }
        }
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--success-green);
            color: white;
            padding: 16px 32px;
            border-radius: 12px;
            font-weight: 500;
            z-index: 3000;
            opacity: 0;
            transition: all 0.4s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Scrollbar Styling */
        .inn9ps-shell ::-webkit-scrollbar {
            width: 8px;
        }

        .inn9ps-shell .inn9ps-shell ::-webkit-scrollbar-track {
            background: var(--bg-primary);
        }

        .inn9ps-shell .inn9ps-shell ::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 4px;
        }

        .inn9ps-shell .inn9ps-shell ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-orange);
        }
    
/* ================================
   Share buttons (Facebook / WhatsApp / Instagram)
   ================================ */

.ad-share {
  margin-top: 10px;
}

.ps-share {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
  margin: 0;
}

.ps-share-item {
  position: relative;
  flex: 0 0 auto;
}

.ps-share-link {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #4d4d4d;
  text-decoration: none;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}

.ps-share-link svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
}

.ps-share-link .filled {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  transition: height 0.25s ease;
}

.ps-share-link:hover {
  color: #fff;
}

.ps-share-link:hover .filled {
  height: 100%;
}

.ps-share-link[data-social="facebook"] .filled { background: #1877f2; }
.ps-share-link[data-social="whatsapp"] .filled { background: #25D366; }
.ps-share-link[data-social="instagram"] .filled { background: #E1306C; }

@media (max-width: 640px) {
  .ps-share {
    gap: 14px;
  }
  .ps-share-link {
    width: 46px;
    height: 46px;
  }
}

/* Delete (X) button on cards */
.ps-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-delete-btn:hover {
  background: rgba(255, 122, 26, 0.85);
  border-color: rgba(255, 122, 26, 0.95);
}

@media (max-width: 640px) {
  .ps-delete-btn {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}
