:root {
    --primary: #ff6b9d;
    --primary-light: #ffa3c4;
    --primary-dark: #e84a7f;
    --secondary: #2d3436;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e9ecef;
    --success: #00b894;
    --warning: #fdcb6e;
    --error: #d63031;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::-moz-scrollbar {
    width: 10px;
    height: 10px;
}

::-moz-scrollbar-track {
    background: var(--bg-light);
    border-radius: 5px;
}

::-moz-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 2px solid var(--bg-light);
}

::-moz-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.6;
    padding: 60px 0px 10px 0px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 60px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

@supports (padding: max(0px)) {
    body {
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-toggle-status.btn-active {
    border-color: #28a745;
    color: #28a745;
}

.btn-toggle-status.btn-active:hover {
    background: #28a745;
    color: white;
}

.btn-toggle-status.btn-inactive {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-toggle-status.btn-inactive:hover {
    background: #dc3545;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.navbar {
    background: var(--bg);
    padding: 16px;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.navbar-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--bg-light);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        border-bottom: 1px solid var(--bg-light);
        padding: 0;
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 8px;
        font-size: 16px;
    }

    .navbar-menu a.btn {
        justify-content: flex-start;
        padding: 12px 8px;
        background: #fff;
        color: var(--primary);
        border: none;
    }

    .navbar-menu a.btn:hover {
        background: var(--bg-light);
        color: var(--primary-dark);
    }

    .navbar-menu i {
        width: 24px;
        text-align: center;
        font-size: 18px;
        color: var(--primary);
    }
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    #services-list .card,
    #products-list .card {
        overflow: hidden;
    }

    #services-list .card .grid-2,
    #products-list .card .grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #services-list .card .grid-2 > div:first-child,
    #products-list .card .grid-2 > div:first-child {
        flex-wrap: wrap;
    }

    #services-list .card .grid-2 > div:first-child > div,
    #products-list .card .grid-2 > div:first-child > div {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #services-list .grid-2 .text-right,
    #products-list .grid-2 .text-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .calendar-grid {
        padding: 8px;
    }

    .calendar-weekdays {
        font-size: 10px;
        padding: 4px 0;
    }

    .calendar-day {
        font-size: 12px;
    }

    .calendar-day.has-appointments::after {
        width: 4px;
        height: 4px;
        bottom: 2px;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .calendar-weekdays>div {
        padding: 4px;
        font-size: 9px;
    }

    .calendar-day {
        font-size: 11px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: #d4f8e8;
    color: var(--success);
}

.badge-warning {
    background: #fef5e7;
    color: #e17055;
}

.badge-error {
    background: #fadbd8;
    color: var(--error);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-light);
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.alert-success {
    background: #d4f8e8;
    color: var(--success);
}

.alert-error {
    background: #fadbd8;
    color: var(--error);
}

.alert-warning {
    background: #fef5e7;
    color: #e17055;
}

.alert-info {
    background: #e8f4fd;
    color: #0984e3;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover,
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
}

.table tr:hover {
    background: var(--bg-light);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
}

.service-card,
.product-card,
.professional-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover,
.product-card:hover,
.professional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.2);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: white;
    font-size: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-header h2 i {
    color: var(--primary);
}

.navbar-brand i {
    margin-right: 8px;
    color: var(--primary);
}

.tab i {
    margin-right: 8px;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
}

.hero h1 i {
    margin-right: 12px;
}

.auth-card {
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.input-group label i {
    margin-right: 8px;
    color: var(--primary);
}

#selected-services {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 8px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.service-item span {
    font-size: 14px;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
}

.btn-remove:hover {
    color: var(--primary-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-controls .btn-qty {
    background: var(--primary);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.quantity-controls .btn-qty:hover {
    background: var(--primary-dark);
}

.quantity-controls .qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.item-row:last-child {
    border-bottom: none;
}

.total-duration {
    padding: 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 16px;
}

.menu-card {
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card a {
    color: hotpink;
    text-decoration: none;
    font-weight: 600;
}

.menu-card a:hover {
    color: #ff4d8a;
    text-decoration: underline;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.2);
}

.menu-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-card {
    padding: 24px;
}

.stat-card .stat-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.finance-card {
    padding: 24px;
}

.finance-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.admin-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

.auth-page .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.auth-page .navbar-menu {
    background: #fff;
}

.auth-page .card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.professional-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 50px 20px 20px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.professional-info {
    flex: 1;
}

.welcome-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.avatar-container {
    position: relative;
    width: 70px;
    height: 70px;
}

.crown-icon {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 60px;
    opacity: 0.7;
    z-index: 1;
}

.professional-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.level-section {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.level-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.level-progress-text {
    font-size: 14px;
    color: var(--text-light);
}

.level-bar {
    height: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
}

.level-progress {
    height: 100%;
    border-radius: 6px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.calendar-header h3 {
    margin: 0;
    color: var(--primary);
}

.calendar-grid {
    background: var(--bg);
    border-radius: var(--radius-sm);
    height: auto;
    min-height: auto;
    overflow: hidden;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow-x: auto;
    aspect-ratio: 2;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .calendar-days {
        aspect-ratio: 1;
    }
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.calendar-days {

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow-x: auto;

}

.calendar-day {
    aspect-ratio: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.calendar-day:hover {
    background: var(--primary-light);
    color: white;
}

.calendar-day.other-month {
    color: var(--text-light);
    opacity: 0.5;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.calendar-day.has-appointments::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.calendar-day.today.has-appointments::after {
    background: white;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.time-slot:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary);
}

.time-slot.busy {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.calendar-day.past-day {
    opacity: 0.5;
}

.calendar-day.past-day:hover {
    background: transparent;
    color: inherit;
}

.calendar-day.selected {
    border: 2px solid var(--primary);
    background: var(--primary-light);
}

.image-upload-container {
    position: relative;
    margin-bottom: 16px;
}

.image-preview {
    position: relative;
    display: inline-block;
    width: 250px;
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.remove-image-btn:hover {
    background: var(--primary-dark);
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.appointment-time {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    min-width: 70px;
}

.appointment-info {
    flex: 1;
}

.appointment-client {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.appointment-service {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.appointment-value {
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    margin-top: 4px;
}

.appointment-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.appointment-actions {
    display: flex;
    gap: 8px;
}

.payment-modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    margin: 0px auto;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    font-size: 1.1rem;
}

.modal-header .close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}

.modal-header .close:hover {
    color: var(--error);
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.modal-body .payment-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-body .payment-row .form-group-col {
    margin-bottom: 0;
}

.modal-body .payment-method-col {
    flex: 2;
}

.modal-body .payment-value-col {
    flex: 1;
}

.modal-body .payment-value-col input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 600;
}

.modal-body .payment-value-col input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.1);
    outline: none;
}

.payment-method-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-selector:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.1);
}

.payment-method-selector span:first-child {
    color: var(--primary);
    font-size: 1.1rem;
}

.payment-method-selector span:nth-child(2) {
    flex: 1;
    font-weight: 500;
}

.payment-method-selector > i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.payment-method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.payment-method-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.payment-method-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-body .input-group-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text-muted);
    font-weight: 600;
}

.modal-body .input-group input {
    border-left: none;
}

.modal-body .input-group input:focus {
    border-left: 1px solid var(--primary);
    box-shadow: none;
}

.btn-add-payment {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--border);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-payment:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.payment-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.payment-item:hover {
    transform: translateX(4px);
}

.payment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.payment-item span:first-child {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-item span:nth-child(2) {
    font-weight: 700;
    color: var(--success);
}

.payment-item button {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    margin-left: 10px;
}

.payment-total {
    text-align: right;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid var(--primary);
    font-size: 1.1rem;
}

.payment-status {
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px;
    border-radius: 8px;
}

.payment-status:empty {
    display: none;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer .btn-primary {
    min-width: 100px;
}

.modal-footer .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #services-list .grid-2 .text-right,
    #products-list .grid-2 .text-right {
        flex-direction: column;
        flex-wrap: wrap;
    }

    #services-list .grid-2 .text-right button,
    #products-list .grid-2 .text-right button {
        width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}