/* ============================================
   İnfluencer360 Brand Portal Styles
   Version: 2.0.0
   Renk Teması: Pembe/Rose (Influencer360)
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Ana renkler */
    --brand-primary: #E91E63;
    --brand-primary-dark: #C2185B;
    --brand-primary-light: #FF6B9D;
    --brand-primary-bg: rgba(233, 30, 99, 0.08);
    --brand-gradient: linear-gradient(135deg, #E91E63 0%, #FF6B9D 100%);
    --brand-gradient-hover: linear-gradient(135deg, #C2185B 0%, #E91E63 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(233,30,99,0.1) 0%, rgba(255,107,157,0.1) 100%);

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-bg: #1a1a2e;
    --sidebar-header-bg: #16162a;
    --sidebar-text: #94A3B8;
    --sidebar-text-hover: #CBD5E1;
    --sidebar-active-bg: rgba(233, 30, 99, 0.15);
    --sidebar-active-border: #E91E63;
    --sidebar-active-text: #FF8FAB;
    --sidebar-border: rgba(255, 255, 255, 0.05);
    --sidebar-section-title: #475569;

    /* Layout */
    --topbar-height: 60px;
    --topbar-bg: #FFFFFF;
    --topbar-border: #E2E8F0;
    --content-bg: #F1F5F9;
    --content-padding: 24px;

    /* Cards */
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --card-radius: 12px;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.10);

    /* Metin */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-light: #CBD5E1;

    /* Durum renkleri */
    --color-success: #10B981;
    --color-success-bg: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-bg: #FEF3C7;
    --color-danger: #EF4444;
    --color-danger-bg: #FEE2E2;
    --color-info: #0EA5E9;
    --color-info-bg: #E0F2FE;
    --color-purple: #8B5CF6;
    --color-purple-bg: #EDE9FE;

    /* Form */
    --input-border: #CBD5E1;
    --input-focus-border: #E91E63;
    --input-focus-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
    --input-radius: 8px;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--content-bg);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-primary-dark);
}

/* ============================================
   LAYOUT
   ============================================ */
.brand-portal-wrapper {
    display: flex;
    min-height: 100vh;
}

.brand-portal-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition-slow);
}

.brand-portal-content {
    flex: 1;
    padding: var(--content-padding);
}

/* ============================================
   SIDEBAR
   ============================================ */
.brand-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
}

.brand-sidebar-header {
    padding: 20px;
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.brand-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.brand-sidebar-brand-name {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sidebar-brand-subtitle {
    font-size: 10px;
    color: var(--sidebar-section-title);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.brand-sidebar-close {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    display: none;
}

.brand-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.brand-sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.brand-sidebar-nav::-webkit-scrollbar { width: 4px; }
.brand-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.brand-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.brand-menu-section {
    margin-bottom: 6px;
}

.brand-menu-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--sidebar-section-title);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 20px 4px;
}

.brand-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--transition);
    border-left: 3px solid transparent;
    gap: 11px;
}

.brand-menu-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.brand-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sidebar-text-hover);
    border-left-color: rgba(233, 30, 99, 0.4);
}

.brand-menu-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    border-left-color: var(--sidebar-active-border);
}

.brand-menu-link.active i {
    color: var(--sidebar-active-text);
}

.brand-menu-badge {
    margin-left: auto;
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

/* Sidebar Footer (Kullanıcı bilgisi) */
.brand-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.brand-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.brand-sidebar-user:hover {
    background: rgba(255, 255, 255, 0.08);
}

.brand-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.brand-sidebar-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.brand-sidebar-user-role {
    font-size: 10px;
    color: var(--sidebar-section-title);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ============================================
   TOPBAR
   ============================================ */
.brand-topbar {
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.brand-topbar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: var(--transition);
    display: none;
}

.brand-topbar-toggle:hover {
    background: var(--content-bg);
    color: var(--text-primary);
}

.brand-topbar-left {
    flex: 1;
}

.brand-topbar-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.brand-topbar-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.brand-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bildirim butonu */
.brand-topbar-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 17px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.brand-topbar-btn:hover {
    background: var(--content-bg);
    color: var(--brand-primary);
}

.brand-topbar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--color-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--topbar-bg);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.brand-page-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.brand-page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   CARDS
   ============================================ */
.brand-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-slow);
}

.brand-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.brand-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-card-title i {
    color: var(--brand-primary);
    font-size: 15px;
}

.brand-card-body {
    padding: 20px;
}

.brand-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--card-border);
    background: #F8FAFC;
}

/* ============================================
   SUMMARY / STAT CARDS (Dashboard)
   ============================================ */
.brand-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-slow);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
}

.brand-stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
    color: inherit;
    border-color: var(--brand-primary);
}

.brand-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.brand-stat-icon.blue {
    background: rgba(233, 30, 99, 0.1);
    color: var(--brand-primary);
}

.brand-stat-icon.green {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.brand-stat-icon.orange {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.brand-stat-icon.red {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.brand-stat-icon.purple {
    background: var(--color-purple-bg);
    color: var(--color-purple);
}

.brand-stat-icon.indigo {
    background: rgba(233, 30, 99, 0.1);
    color: var(--brand-primary);
}

.brand-stat-info {
    flex: 1;
    min-width: 0;
}

.brand-stat-count {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.brand-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BADGES
   ============================================ */
.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.brand-badge-primary {
    background: rgba(233, 30, 99, 0.1);
    color: var(--brand-primary);
}

.brand-badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.brand-badge-warning {
    background: var(--color-warning-bg);
    color: #B45309;
}

.brand-badge-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.brand-badge-info {
    background: var(--color-info-bg);
    color: #0369A1;
}

.brand-badge-purple {
    background: var(--color-purple-bg);
    color: var(--color-purple);
}

.brand-badge-secondary {
    background: #F1F5F9;
    color: var(--text-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */
.brand-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.brand-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.brand-btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.brand-btn-primary:hover {
    background: var(--brand-gradient-hover);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
}

.brand-btn-secondary {
    background: #F1F5F9;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.brand-btn-secondary:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}

.brand-btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
}

.brand-btn-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

.brand-btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.brand-btn-danger:hover {
    background: #DC2626;
    color: #fff;
}

.brand-btn-sm {
    padding: 6px 13px;
    font-size: 12px;
}

.brand-btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.brand-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ============================================
   FORMS
   ============================================ */
.brand-form-group {
    margin-bottom: 18px;
}

.brand-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.brand-form-label .required {
    color: var(--color-danger);
    margin-left: 2px;
}

.brand-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--input-radius);
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    background: #fff;
    transition: var(--transition);
    outline: none;
}

.brand-form-control:focus {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-shadow);
}

.brand-form-control::placeholder {
    color: var(--text-light);
}

.brand-form-control:disabled {
    background: #F8FAFC;
    color: var(--text-muted);
    cursor: not-allowed;
}

textarea.brand-form-control {
    resize: vertical;
    min-height: 100px;
}

select.brand-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.brand-form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.brand-form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 5px;
}

/* ============================================
   TABLES
   ============================================ */
.brand-table-wrapper {
    overflow-x: auto;
    border-radius: var(--card-radius);
    border: 1px solid var(--card-border);
}

.brand-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.brand-table thead tr {
    background: #F8FAFC;
    border-bottom: 2px solid var(--card-border);
}

.brand-table thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    text-align: left;
}

.brand-table tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.brand-table tbody tr:last-child {
    border-bottom: none;
}

.brand-table tbody tr:hover {
    background: var(--brand-primary-bg);
}

.brand-table td {
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--text-primary);
    vertical-align: middle;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.brand-empty-state {
    text-align: center;
    padding: 60px 24px;
}

.brand-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--brand-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--brand-primary);
    margin: 0 auto 18px;
}

.brand-empty-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.brand-empty-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ALERTS (Flash mesajları)
   ============================================ */
.brand-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-alert-success {
    background: var(--color-success-bg);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.brand-alert-error {
    background: var(--color-danger-bg);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.brand-alert-warning {
    background: var(--color-warning-bg);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.brand-alert-info {
    background: var(--color-info-bg);
    color: #0C4A6E;
    border: 1px solid #BAE6FD;
}

/* ============================================
   PAGINATION
   ============================================ */
.brand-pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.brand-pagination .page-link {
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    transition: var(--transition);
}

.brand-pagination .page-link:hover {
    background: var(--brand-primary-bg);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.brand-pagination .page-item.active .page-link {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.brand-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.brand-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 50%, #0f0f1a 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.brand-auth-wrapper::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,30,99,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.brand-auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.brand-auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.brand-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.brand-auth-logo img {
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.brand-auth-logo-title {
    font-size: 20px;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-auth-logo-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2px 0 0;
}

.brand-auth-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px;
    text-align: center;
}

.brand-auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 28px;
}

.brand-auth-form .brand-form-group {
    margin-bottom: 16px;
}

.brand-auth-form .brand-form-control {
    padding: 12px 16px;
    font-size: 14px;
}

.brand-auth-btn {
    width: 100%;
    padding: 13px;
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-auth-btn:hover {
    background: var(--brand-gradient-hover);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.45);
    transform: translateY(-1px);
}

.brand-auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-muted);
}

.brand-auth-switch a {
    color: var(--brand-primary);
    font-weight: 700;
}

.brand-auth-divider {
    height: 1px;
    background: var(--card-border);
    margin: 24px 0;
    position: relative;
}

.brand-auth-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================
   DASHBOARD WELCOME
   ============================================ */
.brand-welcome {
    background: var(--brand-gradient);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.brand-welcome::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.brand-welcome::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: 80px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.brand-welcome-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
}

.brand-welcome-subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

.brand-welcome-date {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

/* ============================================
   LIST ITEMS
   ============================================ */
.brand-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.brand-list-item:last-child {
    border-bottom: none;
}

.brand-list-item:hover {
    background: var(--brand-primary-bg);
}

.brand-list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.brand-list-item-body {
    flex: 1;
    min-width: 0;
}

.brand-list-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-list-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.brand-list-item-right {
    text-align: right;
    flex-shrink: 0;
}

/* ============================================
   NOTIFICATION ITEMS
   ============================================ */
.brand-notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.brand-notification-item:last-child {
    border-bottom: none;
}

.brand-notification-item.unread {
    background: rgba(233, 30, 99, 0.03);
    border-left: 3px solid var(--brand-primary);
}

.brand-notification-item:hover {
    background: var(--brand-primary-bg);
}

.brand-notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-primary);
    flex-shrink: 0;
    margin-top: 6px;
}

.brand-notification-dot.read {
    background: var(--card-border);
}

/* ============================================
   SUPPORT TICKET THREAD
   ============================================ */
.brand-message-thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-message-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.65;
}

.brand-message-bubble.brand-sent {
    background: var(--brand-gradient);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.brand-message-bubble.brand-received {
    background: #F1F5F9;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.brand-message-meta {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 6px;
}

/* ============================================
   FILTER BAR
   ============================================ */
.brand-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
}

.brand-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1.5px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 14px;
    flex: 1;
    min-width: 200px;
}

.brand-search-input i {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.brand-search-input input {
    border: none;
    background: none;
    outline: none;
    font-size: 13.5px;
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    width: 100%;
}

.brand-search-input input::placeholder {
    color: var(--text-light);
}

/* ============================================
   INVOICE / DETAIL SECTIONS
   ============================================ */
.brand-detail-section {
    margin-bottom: 24px;
}

.brand-detail-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.brand-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #F8FAFC;
    gap: 16px;
}

.brand-detail-row:last-child {
    border-bottom: none;
}

.brand-detail-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.brand-detail-value {
    font-size: 13.5px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* ============================================
   RESPONSIVE - Tablet/Mobile
   ============================================ */
@media (max-width: 991px) {
    .brand-portal-main {
        margin-left: 0;
    }

    .brand-sidebar {
        transform: translateX(-100%);
    }

    .brand-sidebar.open {
        transform: translateX(0);
    }

    .brand-sidebar-close {
        display: flex;
    }

    .brand-topbar-toggle {
        display: flex;
    }

    .brand-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        backdrop-filter: blur(2px);
    }

    .brand-sidebar-overlay.open {
        display: block;
    }
}

@media (max-width: 767px) {
    .brand-portal-content {
        padding: 16px;
    }

    .brand-page-header {
        flex-direction: column;
        gap: 12px;
    }

    .brand-page-title {
        font-size: 19px;
    }

    .brand-auth-card {
        padding: 28px 24px;
    }

    .brand-welcome {
        padding: 22px 24px;
    }

    .brand-welcome-title {
        font-size: 19px;
    }

    .brand-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-search-input {
        min-width: 0;
    }

    .brand-stat-card {
        padding: 16px;
    }

    .brand-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
    }

    .brand-stat-count {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .brand-table thead {
        display: none;
    }

    .brand-table tbody tr {
        display: block;
        padding: 12px;
        border-bottom: 1px solid var(--card-border);
    }

    .brand-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 8px;
        border: none;
        font-size: 13px;
    }

    .brand-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.brand-text-primary { color: var(--brand-primary) !important; }
.brand-text-success { color: var(--color-success) !important; }
.brand-text-warning { color: var(--color-warning) !important; }
.brand-text-danger  { color: var(--color-danger) !important; }
.brand-text-muted   { color: var(--text-muted) !important; }

.brand-bg-primary { background: var(--brand-gradient) !important; }
.brand-bg-soft    { background: var(--brand-primary-bg) !important; }

.brand-fw-600 { font-weight: 600 !important; }
.brand-fw-700 { font-weight: 700 !important; }
.brand-fw-800 { font-weight: 800 !important; }

.brand-divider {
    height: 1px;
    background: var(--card-border);
    margin: 16px 0;
}

.brand-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: brand-spin 0.7s linear infinite;
}

.brand-spinner.dark {
    border-color: rgba(233,30,99,0.2);
    border-top-color: var(--brand-primary);
}

@keyframes brand-spin {
    to { transform: rotate(360deg); }
}

/* Pending / onay bekliyor uyarısı */
.brand-pending-notice {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.brand-pending-notice i {
    color: #B45309;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.brand-pending-notice-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 2px;
}

.brand-pending-notice-text span {
    font-size: 12.5px;
    color: #B45309;
}