:root {
  --primary: #e0a45f;
  --primary-dark: #b6644d;
  --secondary: #81B29A;
  --success: #5C80BC;
  --danger: #e07a5f;
  --warning: #f2cc8f;
  --background: #f4f1de;
  --text: #333333;
  --text-light: #666666;
  --border: #e0dcc8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

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

*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-30deg);
  z-index: -1;
}

@keyframes scrollText {
  0% {
    transform: translateY(0%) rotate(-30deg);
  }
  100% {
    transform: translateY(-50%) rotate(-30deg);
  }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(circle at 20% 30%, var(--primary) 0%, transparent 70%),
    radial-gradient(circle at 80% 70%, var(--warning) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, var(--secondary) 0%, transparent 70%),
    linear-gradient(135deg, var(--background) 0%, var(--primary-dark) 100%);
  animation: shiftBackground 8s ease-in-out infinite alternate;
  background-size: 200% 200%;
}

@keyframes shiftBackground {
  0% {
    background-position: 0% 0%;
    opacity: 0.7;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.85;
  }
  100% {
    background-position: 0% 0%;
    opacity: 1;
  }
}

.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  opacity: 0.2;
  animation: float 15s infinite;
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, var(--warning) 0%, var(--primary) 100%);
  background-size: 200% 200%;
  animation: float 15s infinite, gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.shape::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--warning) 0%, var(--primary) 100%);
  border-radius: inherit;
  opacity: 0.8;
  mix-blend-mode: soft-light;
}

.shape:nth-child(1) {
  width: 150px;
  height: 150px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 10%;
  animation-delay: -2s;
}

.shape:nth-child(2) {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.shape:nth-child(3) {
  width: 120px;
  height: 120px;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  bottom: 20%;
  left: 20%;
  animation-delay: -7s;
}

.shape:nth-child(4) {
  width: 80px;
  height: 80px;
  border-radius: 41% 59% 40% 60% / 65% 35% 65% 35%;
  top: 30%;
  right: 25%;
  animation-delay: -3s;
}

.shape:nth-child(5) {
  width: 140px;
  height: 140px;
  border-radius: 59% 41% 52% 48% / 44% 59% 41% 56%;
  bottom: 30%;
  right: 30%;
  animation-delay: -9s;
}

.shape:nth-child(6) {
  width: 90px;
  height: 90px;
  border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  top: 40%;
  left: 25%;
  animation-delay: -4s;
}

.shape:nth-child(7) {
  width: 130px;
  height: 130px;
  border-radius: 46% 54% 38% 62% / 44% 48% 52% 56%;
  bottom: 15%;
  right: 15%;
  animation-delay: -6s;
}

.shape:nth-child(8) {
  width: 110px;
  height: 110px;
  border-radius: 71% 29% 52% 48% / 37% 59% 41% 63%;
  top: 15%;
  left: 35%;
  animation-delay: -8s;
}

.shape:nth-child(9) {
  width: 95px;
  height: 95px;
  border-radius: 45% 55% 39% 61% / 57% 43% 57% 43%;
  bottom: 35%;
  left: 40%;
  animation-delay: -11s;
}

.shape:nth-child(10) {
  width: 160px;
  height: 160px;
  border-radius: 62% 38% 43% 57% / 48% 52% 48% 52%;
  top: 45%;
  right: 35%;
  animation-delay: -13s;
}

.shape:nth-child(11) {
  width: 125px;
  height: 125px;
  border-radius: 35% 65% 31% 69% / 42% 58% 42% 58%;
  bottom: 25%;
  left: 30%;
  animation-delay: -10s;
}

.shape:nth-child(12) {
  width: 145px;
  height: 145px;
  border-radius: 58% 42% 57% 43% / 53% 47% 53% 47%;
  top: 20%;
  right: 20%;
  animation-delay: -12s;
}

.shape:nth-child(13) {
  width: 85px;
  height: 85px;
  border-radius: 44% 56% 33% 67% / 61% 39% 61% 39%;
  bottom: 40%;
  right: 40%;
  animation-delay: -14s;
}

.shape:nth-child(14) {
  width: 135px;
  height: 135px;
  border-radius: 51% 49% 48% 52% / 62% 38% 62% 38%;
  top: 35%;
  left: 15%;
  animation-delay: -15s;
}

.shape:nth-child(15) {
  width: 115px;
  height: 115px;
  border-radius: 67% 33% 61% 39% / 45% 55% 45% 55%;
  bottom: 10%;
  right: 45%;
  animation-delay: -16s;
}

.shape:nth-child(16) {
  width: 105px;
  height: 105px;
  border-radius: 38% 62% 55% 45% / 41% 59% 41% 59%;
  top: 25%;
  left: 45%;
  animation-delay: -17s;
}

.shape:nth-child(17) {
  width: 155px;
  height: 155px;
  border-radius: 49% 51% 45% 55% / 58% 42% 58% 42%;
  bottom: 45%;
  right: 12%;
  animation-delay: -18s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -50px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.container {
  background: rgba(255, 255, 255, 0.089);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.048);

  padding: 2.5rem;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transform-origin: center;
  animation: container-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes container-enter {
  from { 
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.form h2 {
  font-size: 1.75rem;
  color: var(--text);
  text-align: center;
  font-weight: 700;
  margin-bottom: 2rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form input[type="tel"] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(92, 128, 188, 0.1);
  outline: none;
}

.form input:hover {
  border-color: var(--primary-dark);
}
.form input[type="checkbox"] { margin-right: 0.5rem; display: inline-block; margin-bottom: 1rem; }
.form label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1.5;
}

div label {
  color: rgba(255, 255, 255, 0.733)
}

.form label input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form label span {
  flex: 1;
}

.form button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 70%);
  background-size: 200% 100%;
  background-position: 0 0;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.5s ease;
  box-shadow: var(--shadow-md);
}

.form button.secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--warning) 100%);
}

.form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background-position: 100% 0;
}

.form button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.form p {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-light);
}

.form a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.success-message {
  background: rgba(129, 178, 154, 0.1);
  color: var(--success);
  border: 1px solid var(--secondary);
}

.warning-message {
  background: rgba(242, 204, 143, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.error-message {
  background: rgba(224, 122, 95, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
  text-align: center;
  margin-bottom: 1rem;
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Dashboard specific styles */
.dashboard-container {
  max-width: 720px !important;
  background: linear-gradient(135deg, #fff 0%, var(--background) 100%);
}

.user-info {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.info-item:hover {
  background: var(--background);
  border-color: var(--warning);
}

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

.info-item span {
  color: var(--text-light);
  font-weight: 500;
}

.info-item strong {
  color: var(--text);
  font-weight: 600;
}

.logout-btn {
  background: linear-gradient(135deg, var(--danger) 0%, #c5694f 100%) !important;
  margin-top: 1rem;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #e07a5f 0%, #b35d46 100%) !important;
}

/* Loading animation */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Dashboard styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--background);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.13);
    border-right: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 2px 0 24px 0 rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 101;
    padding: 2rem 0 2rem 0;
}

.sidebar .sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0 2rem 1rem 2rem;
    letter-spacing: -0.02em;
}

.sidebar .sidebar-logo img {
  width: 180px;
  height: 70px;
  
  object-fit: cover;
  object-position: center;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.glass-nav.active {
    background: rgba(224, 122, 95, 0.15);
    border: 1px solid rgba(224, 122, 95, 0.3);
    color: var(--primary);
}

.glass-nav.active:hover {
    background: rgba(224, 122, 95, 0.2);
}

.glass-nav.logout-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.glass-nav.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 2rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: var(--primary);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--background);
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    margin-left: 240px;
    overflow: hidden;
}

.dashboard-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.13);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 72px;
}

.dashboard-header .user-section {
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.welcome-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.controls-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem;
}

.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    background: transparent;
}

/* Search styles */
.search-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

/* Tab styles */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    background: transparent;
    border-radius: 12px;
}

.tab {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
    user-select: none;
}

.tab:hover {
    background: #f1f5f9;
    color: #1e293b;
}

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

/* Product grid styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.product-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.view-details-btn, .buy-button, .access-btn {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-details-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-details-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.buy-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.access-btn {
    background: linear-gradient(135deg, var(--success) 0%, var(--secondary) 100%);
    color: white;
    border: none;
}

.access-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--success) 100%);
    color: #fff;
    transform: translateY(-2px);
}

.loading {
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Placeholder styles */
.content-placeholder {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.content-placeholder h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Create Product Form Styles */
.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.glass-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.glass-form .full-width {
    grid-column: 1 / -1;
}

.glass-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.glass-input {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.glass-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

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

.glass-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.glass-btn:hover {
    transform: translateY(-2px);
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 0.5rem;
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Product Viewer Styles */
.product-viewer-content {
    margin-top: 1.5rem;
}

.product-details-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-full-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.product-details-view .info {
    color: var(--text);
}

.product-details-view h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.product-details-view .description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .product-details-view {
        grid-template-columns: 1fr;
    }
}

/* Responsive styles */
@media (max-width: 900px) {
    .sidebar {
        width: 64px;
        padding: 1rem 0;
    }

    .sidebar .sidebar-logo {
        font-size: 1.1rem;
        padding: 0 0.5rem 1rem 0.5rem;
    }

    .sidebar-nav {
        padding: 0 0.5rem;
    }

    .sidebar-nav a span {
        display: none;
    }

    .dashboard-main {
        margin-left: 64px;
    }

    .dashboard-content {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .dashboard-header, 
    .dashboard-content {
        padding: 1rem !important;
    }

    .sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
    }
}

/* Account Tabs */
.account-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Billing Info */
.billing-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.info-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.info-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.info-value.success {
    color: var(--success);
}

/* Subscription Items */
.subscription-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.subscription-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.subscription-info h4 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1rem;
}

.subscription-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.subscription-actions {
    display: flex;
    gap: 0.5rem;
}

.glass-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.cancelled {
    color: var(--warning);
    font-style: italic;
}

.subscription-id {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

/* Invoice Cards */
.invoice-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.invoice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.invoice-header h3 {
    margin: 0;
    color: white;
}

.invoice-details {
    margin-bottom: 1rem;
}

.invoice-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.success {
    background: var(--success);
    color: white;
}

.status-badge.warning {
    background: var(--warning);
    color: var(--text);
}

.status-badge.error {
    background: var(--danger);
    color: white;
}

.status-badge.info {
    background: var(--secondary);
    color: white;
}

.status-badge.default {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

/* Two Factor Section */
.two-factor-section {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.two-factor-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.two-factor-section p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Password Section */
.password-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.password-section h4 {
    margin-bottom: 1rem;
    color: white;
}

/* Orders Container */
.orders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.order-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.order-product {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-product .product-image-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.order-product .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.order-product .product-details {
    flex: 1;
}

.order-product .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem 0;
}

.order-product .product-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.order-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.detail-value.success {
    color: var(--success);
}

.order-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.view-product-btn, .access-product-btn, .download-invoice-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.view-product-btn:hover {
    background: var(--success);
}

.access-product-btn {
    background: var(--success);
    color: white;
}

.access-product-btn:hover {
    background: var(--warning);
}

.download-invoice-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-invoice-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Owned Product Styles */
.owned-product-content {
    margin-top: 1.5rem;
}

.owned-product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.owned-product-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-image-section {
    position: relative;
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.product-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: white;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.product-details h3 {
    margin: 0 0 1rem 0;
    color: white;
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.detail-value.success {
    color: var(--success);
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--danger);
    background: rgba(224, 122, 95, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(224, 122, 95, 0.2);
}

.error-message h3 {
    margin-bottom: 1rem;
}

/* Notification System */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(92, 128, 188, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.notification.error {
    background: rgba(224, 122, 95, 0.2);
    border-color: var(--danger);
    color: var(--danger);
}

.notification.info {
    background: rgba(129, 178, 154, 0.2);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Purchase Success */
.purchase-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.purchase-details {
    margin: 2rem 0;
}

.purchase-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.next-steps {
    margin: 2rem 0;
}

.next-steps h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-item h4 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.step-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.glass-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .owned-product-details {
        grid-template-columns: 1fr;
    }
    
    .order-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-product .product-image-container {
        width: 100%;
        height: 200px;
    }
    
    .account-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}